]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - API/tests/minidom.c
JavaScriptCore-1218.34.tar.gz
[apple/javascriptcore.git] / API / tests / minidom.c
index 8614e51e9797fd53fcd25b4b8ba9ace16b47cbb1..f4ccf91e4ce1726f455ee636154af113d18f062c 100644 (file)
@@ -105,6 +105,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;
     }