[libgda] Corrected mem leak on error
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Corrected mem leak on error
- Date: Sun, 3 Jun 2012 16:03:59 +0000 (UTC)
commit 4a712a897f32ba887fb396b60e5a840048e0a705
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Jun 3 18:02:03 2012 +0200
Corrected mem leak on error
libgda/gda-meta-store.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgda/gda-meta-store.c b/libgda/gda-meta-store.c
index 26afbb2..e551fd2 100644
--- a/libgda/gda-meta-store.c
+++ b/libgda/gda-meta-store.c
@@ -3032,6 +3032,8 @@ gda_meta_store_modify_with_context (GdaMetaStore *store, GdaMetaContext *context
if (store->priv->init_error) {
g_propagate_error (error, g_error_copy (store->priv->init_error));
+ if (cond)
+ g_string_free (cond, TRUE);
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]