Explorar o código

Merge branch 'patch-1' of https://github.com/bryongloden/stb into working

Sean Barrett %!s(int64=8) %!d(string=hai) anos
pai
achega
e77673f4aa
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      stb_c_lexer.h

+ 2 - 0
stb_c_lexer.h

@@ -800,6 +800,8 @@ int main(int argc, char **argv)
    stb_lexer lex;
    if (len < 0) {
       fprintf(stderr, "Error opening file\n");
+      free(text);
+      fclose(f);
       return 1;
    }
    fclose(f);