Skip to content

Commit 2ca4260

Browse files
committed
bin/xbps-remove: fix memory leak in --clean-cache
1 parent ba35060 commit 2ca4260

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bin/xbps-remove/clean-cache.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ clean_cachedir(struct xbps_handle *xhp, bool uninstalled, bool drun)
181181
.uninstalled = uninstalled,
182182
};
183183
rv = xbps_array_foreach_cb_multi(xhp, array, NULL, cleaner_cb, (void*)&data);
184-
xbps_object_release(array);
185184
}
185+
186+
xbps_object_release(array);
186187
return rv;
187188
}

0 commit comments

Comments
 (0)