From b062a21d2ebb2ebd21f809baf04e6f3da64f018f Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Wed, 28 Dec 2005 10:15:55 +0000 Subject: Fixed some memory leaks (patch from Essien Ita Essien ) --- lib/libalpm/handle.c | 2 ++ lib/libalpm/package.c | 1 + 2 files changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index 568f0d28..55b94a4d 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -87,9 +87,11 @@ int handle_free(pmhandle_t *handle) FREETRANS(handle->trans); FREE(handle->root); FREE(handle->dbpath); + FREE(handle->cachedir); FREE(handle->logfile); FREELIST(handle->dbs_sync); FREELIST(handle->noupgrade); + FREELIST(handle->noextract); FREELIST(handle->ignorepkg); free(handle); diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index 777d9353..b7f6fece 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -116,6 +116,7 @@ void pkg_free(pmpkg_t *pkg) return; } + FREELIST(pkg->license); FREELIST(pkg->files); FREELIST(pkg->backup); FREELIST(pkg->depends); -- cgit v1.2.3-70-g09d2