Skip to content

Commit 0cb4c4d

Browse files
committed
Remove use-after-free in test case
1 parent 54c565b commit 0cb4c4d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tests/stringref.c

-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,5 @@ int main()
4343
TEST_BOOL (ref2->str, "StrRefDestroy() result validity 1");
4444
TEST (ref2->obj.refCount, 1, "StrRefDestroy() result validity 2");
4545
StrRefDestroy (ref2);
46-
// WARNING: Use after free. This shouldn't cause problems, though (in theory)
47-
TEST_BOOL (!ref2->str, "StrRefDestroy() result validity");
4846
return 0;
4947
}

0 commit comments

Comments
 (0)