X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=http.c;h=5926c5b3f7bbc781d77e2348db2990bcb51460e6;hb=232d4537667e32230c855777444abbe732536ed9;hp=eb0c6698013e717eda5b6005fb48666191238aab;hpb=31f0bce8537a38639385366f05ba43e91bd91e38;p=git.git diff --git a/http.c b/http.c index eb0c66980..5926c5b3f 100644 --- a/http.c +++ b/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; + } }