Even worst case, I don't see enough just there to fill 1k of ram.
Its not so much that the String class allocates and deallocates at some undefined later time memory. It is that the process for freeing that memory is flawed, resulting in corruption of memory even when it is all correctly, and in a timely fashion, deallocated.