fix: Adding NULL pointer derefernce on set_ll_free_one.

This commit is contained in:
2025-06-26 01:42:36 +02:00
parent 86894713ac
commit 763781b92d
4 changed files with 13 additions and 5 deletions

View File

@@ -61,6 +61,7 @@ TEST(Other_Basic)
TEST(Other_With_Malloc)
{
int *some_array = set_malloc(20 * sizeof(int));
int *array = set_malloc(20);
for (int i = 0; i < 20; i++)
{
@@ -73,6 +74,9 @@ TEST(Other_With_Malloc)
}
fprintf(stdout, ".\n");
set_free(array);
set_free(some_array);
ASSERT_TRUE(false);
}