Skip to content
Myr

Update stb_c_lexer.h

Before adoption: this commit came in with the history the project adopted, so no landing records it.

[stb_c_lexer.h:801]: (error) Memory leak: text [stb_c_lexer.h:801]: (error) Resource leak: f Found by https://github.com/bryongloden/cppcheck

authored by Bryon Gloden, CISSP® · committed by GitHub · parent e75ca42 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:stb_c_lexer.h+2 added
796 unmodified lines
797 int len = f ? fread(text, 1, 1<<20, f) : -1;798 stb_lexer lex;799 if (len < 0) {800 fprintf(stderr, "Error opening file\n");801 free(text);802 fclose(f);803 return 1;804 }805 fclose(f);806
12 unmodified lines