update free() bugfix