From a86266d0479316a7ab654a35828ea2abee8a9059 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 19 Mar 2020 23:06:24 +0100 Subject: Fix destruction of NULL pointer in xattr reader cleanup This fixes a copy and paste error in the cleanup path, destroying a previously destroyed object again instead of the one being tested for. Signed-off-by: David Oberhollenzer --- lib/sqfs/xattr_reader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sqfs') diff --git a/lib/sqfs/xattr_reader.c b/lib/sqfs/xattr_reader.c index bad160d..37f222a 100644 --- a/lib/sqfs/xattr_reader.c +++ b/lib/sqfs/xattr_reader.c @@ -117,8 +117,8 @@ int sqfs_xattr_reader_load(sqfs_xattr_reader_t *xr, const sqfs_super_t *super, } if (xr->kvrd != NULL) { - sqfs_destroy(xr->idrd); - xr->idrd = NULL; + sqfs_destroy(xr->kvrd); + xr->kvrd = NULL; } free(xr->id_block_starts); -- cgit v1.2.3