Skip to content

Commit 764adca

Browse files
committed
Null pointer dereference in tnt_schema_free. closes gh-55
1 parent 5056500 commit 764adca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tnt/tnt_schema.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ void tnt_schema_flush(struct tnt_schema *obj) {
299299
}
300300

301301
void tnt_schema_free(struct tnt_schema *obj) {
302+
if (obj == NULL)
303+
return NULL;
302304
tnt_schema_space_free(obj->space_hash);
303305
mh_assoc_delete(obj->space_hash);
304306
}

0 commit comments

Comments
 (0)