diff options
Diffstat (limited to 'src/package.c')
-rw-r--r-- | src/package.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/package.c b/src/package.c index 6596694..5aa4a67 100644 --- a/src/package.c +++ b/src/package.c @@ -958,19 +958,16 @@ err: void apk_pkg_free(struct apk_package *pkg) { - if (pkg == NULL) - return; + if (pkg == NULL) return; apk_pkg_uninstall(NULL, pkg); apk_dependency_array_free(&pkg->depends); apk_dependency_array_free(&pkg->provides); apk_dependency_array_free(&pkg->install_if); - if (pkg->url) - free(pkg->url); - if (pkg->description) - free(pkg->description); - if (pkg->commit) - free(pkg->commit); + if (pkg->url) free(pkg->url); + if (pkg->description) free(pkg->description); + if (pkg->commit) free(pkg->commit); + if (pkg->filename) free(pkg->filename); free(pkg); } |