Merge pull request #5699 from meepingsnesroms/master
Properly clean up memory on exit(libretrodb_tool)
This commit is contained in:
commit
5ba28b60aa
|
@ -177,6 +177,7 @@ int main(int argc, char ** argv)
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
libretrodb_cursor_close(cur);
|
||||||
libretrodb_close(db);
|
libretrodb_close(db);
|
||||||
|
|
||||||
error:
|
error:
|
||||||
|
@ -184,5 +185,7 @@ error:
|
||||||
libretrodb_free(db);
|
libretrodb_free(db);
|
||||||
if (cur)
|
if (cur)
|
||||||
libretrodb_cursor_free(cur);
|
libretrodb_cursor_free(cur);
|
||||||
|
if (q)
|
||||||
|
libretrodb_query_free(q);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue