mirror of
https://github.com/libretro/RetroArch
synced 2025-03-24 04:44:02 +00:00
(libretro-db) Fix query leaks
This commit is contained in:
parent
dc3d096a46
commit
18a4c1029d
@ -323,7 +323,10 @@ retry:
|
||||
if (cursor->query)
|
||||
{
|
||||
if (!libretrodb_query_filter(cursor->query, out))
|
||||
{
|
||||
rmsgpack_dom_value_free(out);
|
||||
goto retry;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
@ -886,6 +886,10 @@ void libretrodb_query_free(void *q)
|
||||
|
||||
for (i = 0; i < real_q->root.argc; i++)
|
||||
argument_free(&real_q->root.argv[i]);
|
||||
|
||||
free(real_q->root.argv);
|
||||
real_q->root.argv = NULL;
|
||||
free(real_q);
|
||||
}
|
||||
|
||||
void *libretrodb_query_compile(libretrodb_t *db,
|
||||
|
Loading…
x
Reference in New Issue
Block a user