diff options
Diffstat (limited to 'lib/libalpm/be_package.c')
-rw-r--r-- | lib/libalpm/be_package.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalpm/be_package.c b/lib/libalpm/be_package.c index 0f45c331..5ffea875 100644 --- a/lib/libalpm/be_package.c +++ b/lib/libalpm/be_package.c @@ -760,14 +760,14 @@ int SYMEXPORT alpm_pkg_load(alpm_handle_t *handle, const char *filename, int ful pkg_temp = _alpm_pkg_load_internal(handle, filename, full); if(pkg_temp) { packager = pkg_temp->packager; - _alpm_pkg_free(pkg_temp); + } else { packager = NULL; } if(_alpm_key_import(handle, packager, key) == -1) { fail = 1; } - free(packager); + _alpm_pkg_free(pkg_temp); } } FREELIST(keys); |