Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d6d64df

Browse filesBrowse files
committed
Merge pull request #5372 from QuLogic/cairo-memleak
Fix Cairo memleak
2 parents 5da9ed5 + 5545d21 commit d6d64df
Copy full SHA for d6d64df

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎src/_image_wrapper.cpp

Copy file name to clipboardExpand all lines: src/_image_wrapper.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ static PyObject *PyImage_color_conv(PyImage *self, PyObject *args, PyObject *kwd
177177
free(buff));
178178

179179
PyObject *result = PyByteArray_FromStringAndSize((const char *)buff, size);
180+
free(buff);
180181
if (result == NULL) {
181-
free(buff);
182182
return NULL;
183183
}
184184

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.