]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - API/tests/testapi.c
JavaScriptCore-1218.34.tar.gz
[apple/javascriptcore.git] / API / tests / testapi.c
index a53a340976bc5c2995a425d6a074fa95a4c3db0d..83c605cf45804c6a77a3def1f93be345902aa908 100644 (file)
@@ -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;
     }