Changeset fc3d4fd5 in mainline
- Timestamp:
- 2017-09-06T22:16:31Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 12dcd5f
- Parents:
- d14840d
- Location:
- uspace
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/download/main.c
rd14840d rfc3d4fd5 72 72 void *buf = NULL; 73 73 uri_t *uri = NULL; 74 http_t *http = NULL; 74 75 int rc; 75 76 … … 182 183 } 183 184 184 http _t *http= http_create(uri->host, port);185 http = http_create(uri->host, port); 185 186 if (http == NULL) { 186 187 fprintf(stderr, "Failed creating HTTP object\n"); … … 234 235 235 236 free(buf); 237 http_destroy(http); 236 238 uri_destroy(uri); 237 239 if (fclose(ofile) != 0) { … … 243 245 error: 244 246 free(buf); 247 if (http != NULL) 248 http_destroy(http); 245 249 if (uri != NULL) 246 250 uri_destroy(uri); -
uspace/lib/http/src/http.c
rd14840d rfc3d4fd5 121 121 122 122 tcp_conn_destroy(http->conn); 123 http->conn = NULL; 123 124 tcp_destroy(http->tcp); 125 http->tcp = NULL; 126 124 127 return EOK; 125 128 } … … 127 130 void http_destroy(http_t *http) 128 131 { 132 (void) http_close(http); 129 133 recv_buffer_fini(&http->recv_buffer); 130 134 free(http);
Note:
See TracChangeset
for help on using the changeset viewer.