Skip to content

Commit c008b70

Browse files
committed
Forgot to free the buffer
1 parent 25f4128 commit c008b70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/modules/filesystem/filesystem.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ PyObject* SourceFile::InternalReadline(bool binaryMode, int size, int& outBytesR
160160
result = PyUnicode_FromStringAndSize(buffer, bytesPut);
161161
}
162162

163+
UTIL_Dealloc(buffer);
164+
163165
return result;
164166
}
165167

0 commit comments

Comments
 (0)