Merge pull request #5699 from meepingsnesroms/master

Properly clean up memory on exit(libretrodb_tool)
This commit is contained in:
Twinaphex 2017-11-18 10:18:14 +01:00 committed by GitHub
commit 5ba28b60aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,6 +177,7 @@ int main(int argc, char ** argv)
goto error;
}
libretrodb_cursor_close(cur);
libretrodb_close(db);
error:
@ -184,5 +185,7 @@ error:
libretrodb_free(db);
if (cur)
libretrodb_cursor_free(cur);
if (q)
libretrodb_query_free(q);
return 1;
}