Closed deltheil closed 8 years ago
tds_vec_remove must only decrement the vector size before returning. So do not call tds_vec_resize for that purpose since it frees up extra element(s).
tds_vec_remove
tds_vec_resize
I encountered this via a malloc: pointer being freed was not allocated error.
malloc: pointer being freed was not allocated
Thanks Cedric.
tds_vec_remove
must only decrement the vector size before returning. So do not calltds_vec_resize
for that purpose since it frees up extra element(s).I encountered this via a
malloc: pointer being freed was not allocated
error.