Fix 'dereference after null check'

This commit is contained in:
twinaphex 2016-06-02 20:52:30 +02:00
parent d8b3597455
commit 7b04375c9b

View File

@ -564,7 +564,8 @@ clean:
free(buff);
if (cur.is_valid)
libretrodb_cursor_close(&cur);
bintree_free(tree);
if (tree)
bintree_free(tree);
free(tree);
return 0;
}