Removed assertions in free_buffer, fixes issue #2