Changeset fc3d4fd5 in mainline for uspace/app/download/main.c
- Timestamp:
- 2017-09-06T22:16:31Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 12dcd5f
- Parents:
- d14840d
- File:
-
- 1 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);
Note:
See TracChangeset
for help on using the changeset viewer.