fix undefined behavior in free
1 file changed