X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/93a3786624b2768d89bfa27e46598dc64e2fb70a..217a6308cd6a1dc049a0bb69263bd4c91f91c4d0:/API/tests/testapi.c diff --git a/API/tests/testapi.c b/API/tests/testapi.c index a53a340..83c605c 100644 --- a/API/tests/testapi.c +++ b/API/tests/testapi.c @@ -1980,6 +1980,7 @@ static char* createStringWithContentsOfFile(const char* fileName) FILE* f = fopen(fileName, "r"); if (!f) { fprintf(stderr, "Could not open file: %s\n", fileName); + free(buffer); return 0; }