don't realloc/free pointer of size 0