diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-08-29 04:37:57 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-29 04:37:57 +0200 |
commit | 42fa6df99fe1f0439244893e81efad0cc4524c3d (patch) | |
tree | 5e3d48ed14a8ccfe5b95669eaf8c73d980b6c70d /http.c | |
parent | t/test-lib.sh: provide a shell implementation of the 'yes' utility (diff) | |
parent | Merge branch 'rc/maint-http-fix' into maint (diff) | |
download | git-42fa6df99fe1f0439244893e81efad0cc4524c3d.tar.xz git-42fa6df99fe1f0439244893e81efad0cc4524c3d.zip |
Merge branch 'maint'
* maint:
http.c: set slot callback members to NULL when releasing object
Diffstat (limited to 'http.c')
-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; + } } |