Skip to content
Snippets Groups Projects
Commit f08fee95 authored by Timo Teräs's avatar Timo Teräs
Browse files

fix search --has-origin to not leak memory

parent 36d730e9
No related branches found
No related tags found
No related merge requests found
......@@ -130,7 +130,7 @@ static void print_result_pkg(struct search_ctx *ctx, struct apk_package *pkg)
}
if (ctx->search_origin) {
foreach_array_item(pmatch, ctx->filter) {
if (pkg->origin != NULL && strcmp(*pmatch, apk_blob_cstr(*pkg->origin)) == 0)
if (pkg->origin && apk_blob_compare(APK_BLOB_STR(*pmatch), *pkg->origin) == 0)
goto match;
}
return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment