summaryrefslogtreecommitdiff
path: root/pkt-line.h
diff options
context:
space:
mode:
authorTay Ray Chuan <rctay89@gmail.com>2009-08-26 20:20:53 +0800
committerJunio C Hamano <gitster@pobox.com>2009-08-28 19:24:43 -0700
commit4b9fa0e359a710b5d8dae542a92df7dbe56d9915 (patch)
tree0695f547a37b13d36fe6bdbd81f12b12cebaf2cd /pkt-line.h
parent749086fa090d81c10ebf16b1abfd138c3fa0232e (diff)
downloadgit-4b9fa0e359a710b5d8dae542a92df7dbe56d9915.tar.gz
http.c: set slot callback members to NULL when releasing object
Set the members callback_func and callback_data of freq->slot to NULL when releasing a http_object_request. release_active_slot() is also invoked on the slot to remove the curl handle associated with the slot from the multi stack (CURLM *curlm in http.c). These prevent the callback function and data from being used in http methods (like http.c::finish_active_slot()) after a http_object_request has been free'd. Noticed by Ali Polatel, who later tested this patch to verify that it fixes the problem he saw; Dscho helped to identify the problem spot. Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pkt-line.h')
0 files changed, 0 insertions, 0 deletions