Working on fw for a microcontroller with 16k of RAM.
Today, in the same file I found two issues:
Function A: 7 byte malloc leaked 297 times, totaling 2079 bytes.
Function B: Putting a 2079 byte buffer on the stack (plus a second 512 byte buffer)
Both buffers had in common that they were not only trivially avoidable but actually ended up complicating things.