SmallerC
SmallerC copied to clipboard
Memory leaks fixes
Fixes for Issue #32.
Looks quite nice. Ping @alexfru :)
Haven't looked at everything yet, but the added va_end(vl);'s need to be under the same #if... as the matching va_start(vl, format);.
On top of that:
- declaration of oldpp will fail to compile with pre-C99 compilers
- oldpp needs to be updated after successful call to realloc()
- there's another instance of fatargs() in ucpp
- main(), which calls fatargs(), doesn't free memory it receives from fatargs(), but I'm too lazy to fix this one now
I'm gonna fix these (except main()'s) myself.