mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
Fixed some memory leaks (patch from Essien Ita Essien <essiene@datavibe.net>)
This commit is contained in:
parent
6bd15469b1
commit
b062a21d2e
@ -87,9 +87,11 @@ int handle_free(pmhandle_t *handle)
|
|||||||
FREETRANS(handle->trans);
|
FREETRANS(handle->trans);
|
||||||
FREE(handle->root);
|
FREE(handle->root);
|
||||||
FREE(handle->dbpath);
|
FREE(handle->dbpath);
|
||||||
|
FREE(handle->cachedir);
|
||||||
FREE(handle->logfile);
|
FREE(handle->logfile);
|
||||||
FREELIST(handle->dbs_sync);
|
FREELIST(handle->dbs_sync);
|
||||||
FREELIST(handle->noupgrade);
|
FREELIST(handle->noupgrade);
|
||||||
|
FREELIST(handle->noextract);
|
||||||
FREELIST(handle->ignorepkg);
|
FREELIST(handle->ignorepkg);
|
||||||
free(handle);
|
free(handle);
|
||||||
|
|
||||||
|
@ -116,6 +116,7 @@ void pkg_free(pmpkg_t *pkg)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FREELIST(pkg->license);
|
||||||
FREELIST(pkg->files);
|
FREELIST(pkg->files);
|
||||||
FREELIST(pkg->backup);
|
FREELIST(pkg->backup);
|
||||||
FREELIST(pkg->depends);
|
FREELIST(pkg->depends);
|
||||||
|
Loading…
Reference in New Issue
Block a user