Skip to content

Commit 03b3d46

Browse files
committed
- Fixed test memory leak.
1 parent 2103912 commit 03b3d46

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ test_compare_file(
6767
fclose(f);
6868

6969
TEST_ASSERT(strcmp(p, text) == 0);
70+
71+
free(p);
7072
}
7173

7274
typedef struct _test_http_context

0 commit comments

Comments
 (0)