- Commit
- d94d592d2b76c2f0c4bc27ab74ff145ee1e390f5
- Parent
- 3f251cdca271ddb79d06fb8fc101499d0e9a3021
- Author
- John MacFarlane <fiddlosopher@gmail.com>
- Date
Avoid potential memory leak.
Previously, if malloc failed to allocate 'newstack', the function
would return without freeing 'stack'. Pointed out by clang static
analyzer.