Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  http.c: set slot callback members to NULL when releasing object
  • Loading branch information
Junio C Hamano committed Aug 29, 2009
2 parents 8648732 + 48ae73b commit 42fa6df
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion http.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 42fa6df

Please sign in to comment.