diff options
author | Aurelien Foret <aurelien@archlinux.org> | 2006-02-22 20:49:33 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-02-22 20:49:33 +0000 |
commit | 16ff7cfa8ef2d50c97d79357c2b2c1fdc2bc241b (patch) | |
tree | d259cc5a0de95d478c3a21df549dbd90880147cd /lib/libalpm/package.c | |
parent | 78ffd98701b64bff74fc530db91ffc7e8768989a (diff) | |
download | pacman-16ff7cfa8ef2d50c97d79357c2b2c1fdc2bc241b.tar.xz |
improved _alpm_list_free handling
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r-- | lib/libalpm/package.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/package.c b/lib/libalpm/package.c index fe568fe0..4f2bcaaa 100644 --- a/lib/libalpm/package.c +++ b/lib/libalpm/package.c @@ -121,8 +121,10 @@ pmpkg_t *_alpm_pkg_dup(pmpkg_t *pkg) return(newpkg); } -void _alpm_pkg_free(pmpkg_t *pkg) +void _alpm_pkg_free(void *data) { + pmpkg_t *pkg = data; + if(pkg == NULL) { return; } |