Skip to content

Commit e88ad64

Browse files
committed
bin/xbps-remove: fix memory leak in --clean-cache
1 parent 25fba2e commit e88ad64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/xbps-remove/clean-cache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ clean_cachedir(struct xbps_handle *xhp, bool uninstalled, bool drun)
179179
.uninstalled = uninstalled,
180180
};
181181
rv = xbps_array_foreach_cb_multi(xhp, array, NULL, cleaner_cb, (void*)&data);
182-
xbps_object_release(array);
183182
}
183+
184+
xbps_object_release(array);
184185
return rv;
185186
}

0 commit comments

Comments
 (0)