Skip to content

Commit f9bd8a5

Browse files
committed
lib: fix memory leak when unpacking updates
1 parent ada872d commit f9bd8a5

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/package_unpack.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ unpack_archive(struct xbps_handle *xhp,
467467
free(buf);
468468
}
469469
xbps_object_release(binpkg_filesd);
470+
if (pkg_filesd)
471+
xbps_object_release(pkg_filesd);
470472

471473
return rv;
472474
}

0 commit comments

Comments
 (0)