1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-05 09:48:42 +00:00

(libretro-db/query.c) Prevent warning 'use-after-free'

This commit is contained in:
twinaphex 2016-09-22 20:47:26 +02:00
parent 97df8ce2fa
commit 1c1cac328d

View File

@ -1008,12 +1008,13 @@ void *libretrodb_query_compile(libretrodb_t *db,
libretrodb_query_free(q);
return NULL;
}
goto success;
return q;
clean:
if (q)
libretrodb_query_free(q);
success:
return q;
return NULL;
}
void libretrodb_query_inc_ref(libretrodb_query_t *q)