diff options
author | Christophe Dumez <christophe.dumez@intel.com> | 2011-05-30 14:16:11 +0300 |
---|---|---|
committer | Patrick Ohly <patrick.ohly@intel.com> | 2011-06-06 14:09:17 +0200 |
commit | c85a6bccc2412b357901386b671651a45fde74d4 (patch) | |
tree | 0def35fd5aa7c407b14a54ccca86ecb16aa12250 | |
parent | 236c96932aba9966dbbbdf961e2ed73c474df452 (diff) | |
download | evolution-data-server-c85a6bccc2412b357901386b671651a45fde74d4.tar.gz |
e_book_backend_file_get_changes: Fix possible memory leak
Currently, only the list elements were freed. This patch
makes sure the GLists are freed too.
-rw-r--r-- | addressbook/backends/file/e-book-backend-file.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/addressbook/backends/file/e-book-backend-file.c b/addressbook/backends/file/e-book-backend-file.c index 8ace93ee9..d977a2ec9 100644 --- a/addressbook/backends/file/e-book-backend-file.c +++ b/addressbook/backends/file/e-book-backend-file.c @@ -868,6 +868,14 @@ e_book_backend_file_get_changes (EBookBackendSync *backend, e_dbhash_write (ehash); *changes_out = changes; + + /* Free the lists */ + g_list_free (ctx.add_ids); + g_list_free (ctx.mod_ids); + g_list_free (ctx.del_ids); + g_list_free (ctx.add_cards); + g_list_free (ctx.mod_cards); + g_list_free (ctx.del_cards); } e_dbhash_destroy (ehash); |