Skip to content

Commit 56390d1

Browse files
committed
[ CID 15328 ] Fix incorrect deallocator issue
1 parent 3f7ff37 commit 56390d1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

engine/src/mcio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ IO_stat IO_read_stringref_legacy(MCStringRef& r_string, IO_handle p_stream, bool
675675

676676
if (!MCStringCreateWithBytesAndRelease((byte_t *)t_bytes, t_length, t_encoding, false, r_string))
677677
{
678-
delete t_bytes;
678+
MCMemoryDeallocate(t_bytes);
679679
return IO_ERROR;
680680
}
681681

0 commit comments

Comments
 (0)