Merge pull request #12 from stephenmathieson/fix/memory-leak

Fix memory leak
pull/13/head
Krzysztof Gabis 11 years ago
commit 148e0ccbef
  1. 1
      parson.c

@ -161,6 +161,7 @@ static char * read_file(const char * filename) {
if (fread(file_contents, file_size, 1, fp) < 1) {
if (ferror(fp)) {
fclose(fp);
parson_free(file_contents);
return NULL;
}
}

Loading…
Cancel
Save