Skip to content

Commit 42fa6df

Browse files
committed
Merge branch 'maint'
* maint: http.c: set slot callback members to NULL when releasing object
2 parents 8648732 + 48ae73b commit 42fa6df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

http.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1289,5 +1289,10 @@ void release_http_object_request(struct http_object_request *freq)
12891289
free(freq->url);
12901290
freq->url = NULL;
12911291
}
1292-
freq->slot = NULL;
1292+
if (freq->slot != NULL) {
1293+
freq->slot->callback_func = NULL;
1294+
freq->slot->callback_data = NULL;
1295+
release_active_slot(freq->slot);
1296+
freq->slot = NULL;
1297+
}
12931298
}

0 commit comments

Comments
 (0)