[evolution-ews] EBookBackendSqliteDB: fix memory leak in book_backend_sqlitedb_search_full



commit b317f81dc3cfec0aa128871c28113116271868a8
Author: Sean Finney <seanius seanius net>
Date:   Wed May 18 14:38:46 2011 +0200

    EBookBackendSqliteDB: fix memory leak in book_backend_sqlitedb_search_full
    
    Signed-off-by: Sean Finney <seanius seanius net>

 src/addressbook/e-book-backend-sqlitedb.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-sqlitedb.c b/src/addressbook/e-book-backend-sqlitedb.c
index b1026c2..00e9607 100644
--- a/src/addressbook/e-book-backend-sqlitedb.c
+++ b/src/addressbook/e-book-backend-sqlitedb.c
@@ -1154,6 +1154,7 @@ book_backend_sqlitedb_search_full (EBookBackendSqliteDB *ebsdb, const gchar *sex
 				all = g_list_prepend (all, vcard);
 		}
 
+		g_slist_foreach (uids, (GFunc) g_free, NULL);
 		g_slist_free (uids);
 	} else {
 		stmt = sqlite3_mprintf ("SELECT vcard FROM %Q", folderid);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]