Conforming to custom free func usage

pull/16/head
Emmanuel Odeke 10 years ago
parent c16886b533
commit 82f41d0571
  1. 2
      parson.c

@ -172,7 +172,7 @@ static char * read_fildes(const int fd) {
} }
if (i < 1) { if (i < 1) {
free(file_contents); parson_free(file_contents);
file_contents = NULL; file_contents = NULL;
} else { } else {
if (try_realloc((void **)&file_contents, sizeof(char) * (i+1)) == ERROR) if (try_realloc((void **)&file_contents, sizeof(char) * (i+1)) == ERROR)

Loading…
Cancel
Save