fix stupid memleak in the auto-resizing vector