Free the data. Only if data is not NULL and size !=0; It is a way to not delete data we want to keep.