diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-08-29 06:37:57 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-29 06:37:57 +0400 |
commit | 42fa6df99fe1f0439244893e81efad0cc4524c3d (patch) | |
tree | 5e3d48ed14a8ccfe5b95669eaf8c73d980b6c70d | |
parent | 8648732e298b74b25171c97e6ea144818f29c403 (diff) | |
parent | 48ae73b11487e12f8f7198e18779e65500d4ca0c (diff) |
Merge branch 'maint'
* maint:
http.c: set slot callback members to NULL when releasing object
-rw-r--r-- | http.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; + } } |