mirror of
https://github.com/git/git.git
synced 2024-11-28 20:44:04 +08:00
Merge branch 'maint'
* maint: http.c: set slot callback members to NULL when releasing object
This commit is contained in:
commit
42fa6df99f
7
http.c
7
http.c
@ -1289,5 +1289,10 @@ void release_http_object_request(struct http_object_request *freq)
|
||||
free(freq->url);
|
||||
freq->url = NULL;
|
||||
}
|
||||
freq->slot = NULL;
|
||||
if (freq->slot != NULL) {
|
||||
freq->slot->callback_func = NULL;
|
||||
freq->slot->callback_data = NULL;
|
||||
release_active_slot(freq->slot);
|
||||
freq->slot = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user