Skip to content

Commit 3ecf56b

Browse files
committed
Fix potential memory leak in error condition in conference code
1 parent 7c1a9cd commit 3ecf56b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytox/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,7 @@ static PyObject *ToxCore_conference_get_chatlist(ToxCore *self,
10991099

11001100
PyObject *plist = PyList_New(0);
11011101
if (!plist) {
1102+
free(list);
11021103
return NULL;
11031104
}
11041105

0 commit comments

Comments
 (0)