summaryrefslogtreecommitdiffstats
path: root/lib/x1000-installer/src/xf_package.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/x1000-installer/src/xf_package.c')
-rw-r--r--lib/x1000-installer/src/xf_package.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/x1000-installer/src/xf_package.c b/lib/x1000-installer/src/xf_package.c
index 04b32cdcb0..fb107aef72 100644
--- a/lib/x1000-installer/src/xf_package.c
+++ b/lib/x1000-installer/src/xf_package.c
@@ -257,8 +257,5 @@ void xf_package_close(struct xf_package* pkg)
if(mtar_is_open(pkg->tar))
mtar_close(pkg->tar);
- if(pkg->alloc_handle > 0) {
- core_free(pkg->alloc_handle);
- pkg->alloc_handle = 0;
- }
+ pkg->alloc_handle = core_free(pkg->alloc_handle);
}