httpc_fs_free(httpc_filestate_t *filestate)
{
if (filestate != NULL) {
- if (filestate->file != NULL) {
- fclose(filestate->file);
- filestate->file = NULL;
- }
mem_free(filestate);
}
}
{
httpc_filestate_t *filestate = (httpc_filestate_t *)arg;
if (filestate != NULL) {
+ if (filestate->file != NULL) {
+ fclose(filestate->file);
+ filestate->file = NULL;
+ }
if (filestate->client_settings->result_fn != NULL) {
filestate->client_settings->result_fn(filestate->callback_arg, httpc_result, rx_content_len,
srv_res, err);