Rpless/bug/malloc

I bet you didn't know you could do this.