Update stb_c_lexer.h
[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
This commit is contained in:
parent
e75ca4234e
commit
8eebc09150
@ -798,6 +798,8 @@ int main(int argc, char **argv)
|
|||||||
stb_lexer lex;
|
stb_lexer lex;
|
||||||
if (len < 0) {
|
if (len < 0) {
|
||||||
fprintf(stderr, "Error opening file\n");
|
fprintf(stderr, "Error opening file\n");
|
||||||
|
free(text);
|
||||||
|
fclose(f);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
Loading…
Reference in New Issue
Block a user