diff options
| author | Junio C Hamano <gitster@pobox.com> | 2018-08-27 14:33:42 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-08-27 14:33:42 -0700 |
| commit | 7ae96e3fcfcd4f3d7c18965eb8805554a9e432bc (patch) | |
| tree | cd741e42d51387ffcfd7baeaa79e27ba5b45d3ae /http.c | |
| parent | a988ce9a580bb1cae6fbeead69eff53b113a373c (diff) | |
| parent | ce528de023f82d767096b0342b6da8039feff7bc (diff) | |
| download | git-7ae96e3fcfcd4f3d7c18965eb8805554a9e432bc.tar.xz | |
Merge branch 'ab/unconditional-free-and-null'
Code clean-up.
* ab/unconditional-free-and-null:
refactor various if (x) FREE_AND_NULL(x) to just FREE_AND_NULL(x)
Diffstat (limited to 'http.c')
| -rw-r--r-- | http.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -2418,9 +2418,7 @@ void release_http_object_request(struct http_object_request *freq) close(freq->localfile); freq->localfile = -1; } - if (freq->url != NULL) { - FREE_AND_NULL(freq->url); - } + FREE_AND_NULL(freq->url); if (freq->slot != NULL) { freq->slot->callback_func = NULL; freq->slot->callback_data = NULL; |
