Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
http.c: set slot callback members to NULL when releasing object
[gitweb.git]
/
http.c
diff --git
a/http.c
b/http.c
index a2720d576d72e456b038444050f5b8de9d25d792..1ae19e070dfd138a6c6729d7725da65c41c186eb 100644
(file)
--- a/
http.c
+++ b/
http.c
@@
-1285,5
+1285,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;
+ }
}