Skip to content

Commit 7d1dcf8

Browse files
committed
Added event_base_free() to deallocation of Context object
1 parent 68d92da commit 7d1dcf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

context.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ context_dealloc(getdns_ContextObject *self)
7272
if ((context = PyCapsule_GetPointer(self->py_context, "context")) == NULL) {
7373
return;
7474
}
75+
if (self->event_base)
76+
event_base_free(self->event_base);
7577
Py_XDECREF(self->py_context);
7678
getdns_context_destroy(context);
7779
return;

0 commit comments

Comments
 (0)