From 82f41d05716a52048a6edcdcbf26de19e2b7ffc5 Mon Sep 17 00:00:00 2001 From: Emmanuel Odeke Date: Mon, 15 Sep 2014 03:21:01 -0600 Subject: [PATCH] Conforming to custom free func usage --- parson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parson.c b/parson.c index 6e7d2ab..6839dcd 100644 --- a/parson.c +++ b/parson.c @@ -172,7 +172,7 @@ static char * read_fildes(const int fd) { } if (i < 1) { - free(file_contents); + parson_free(file_contents); file_contents = NULL; } else { if (try_realloc((void **)&file_contents, sizeof(char) * (i+1)) == ERROR)