summaryrefslogtreecommitdiff
path: root/lib/libalpm/package.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/package.c')
-rw-r--r--lib/libalpm/package.c4
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;
}