summaryrefslogtreecommitdiff
path: root/src/gen.c
diff options
context:
space:
mode:
authorviktor.shepel <shepelvictor@bigmir.net>2017-06-20 17:03:42 +0300
committerWill Estes <westes575@gmail.com>2017-07-03 11:45:37 -0400
commit8a044dbe6d03877c3d8c205ae76be9c41f442237 (patch)
tree7ae388ded81844ba7ca5492e72034bda3887feed /src/gen.c
parentef32155253a100a774c087ae4a6be3fb5c6a375c (diff)
filter: memory leak free scanner postprocessing.
**Issue:** Scanner postprocessing leaks memory during correction of `#line` directives values and generation of C header file. **Root cause:** `filter_fix_linedirs` and `filter_tee_header` functions do not dispose allocated memory. **Solution:** Automatically reclaim affected memory by allocating it on stack insted of heap. Stack allocation should not be a problem as its only 512 bytes and there is no recursive calls.
Diffstat (limited to 'src/gen.c')
0 files changed, 0 insertions, 0 deletions