Browse Source

test_printbuf: Free data when we are done with it.

pull/45/head
Jonathan Clairembault 13 years ago
parent
commit
77e2da7767
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      tests/test_printbuf.c

+ 2
- 0
tests/test_printbuf.c View File

@@ -143,6 +143,8 @@ static void test_sprintbuf(int before_resize)
printf("%d, [%s]\n", printbuf_length(pb), pb->buf);

printbuf_free(pb);
free(data);

printf("%s: end test\n", __func__);
}



Loading…
Cancel
Save