Skip to content

Commit

Permalink
Fix memory leak in parser (raysan5#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnieholm authored and lukekras committed Nov 14, 2021
1 parent 01af6a7 commit 45f2bae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions parser/raylib_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,8 @@ int main(int argc, char* argv[])
}
}

free(enumLines);

// Functions info data
funcs = (FunctionInfo *)calloc(MAX_FUNCS_TO_PARSE, sizeof(FunctionInfo));

Expand Down

0 comments on commit 45f2bae

Please sign in to comment.