}
ctx->client->output_cmd_lock = NULL;
- if (state->cur_str != NULL)
- str_free(&state->cur_str);
+ str_free(&state->cur_str);
i_stream_unref(&state->cur_input);
if (file->super_read != _file->parent && file->super_read != NULL)
fs_file_deinit(&file->super_read);
- if (file->metadata_header != NULL)
- str_free(&file->metadata_header);
+ str_free(&file->metadata_header);
fs_file_deinit(&_file->parent);
i_free(file->file.path);
i_free(file);
fp->v.destroy(fp);
else {
/* default destroy implementation */
- if (fp->token != NULL)
- str_free(&fp->token);
+ str_free(&fp->token);
i_free(fp);
}
}
}
i_stream_unref(&req->payload_input);
o_stream_unref(&req->payload_output);
- if (req->headers != NULL)
- str_free(&req->headers);
+ str_free(&req->headers);
event_unref(&req->event);
pool_unref(&req->pool);
return FALSE;
} else {
mail_index_sync_rollback(&ctx->index_sync_ctx);
}
- if (ctx->path != NULL)
- str_free(&ctx->path);
+ str_free(&ctx->path);
i_free(ctx);
return ret;
}
search_mimepart_arg, &mpctx);
pool_unref(&mpctx.pool);
- if (mpctx.buf != NULL)
- str_free(&mpctx.buf);
+ str_free(&mpctx.buf);
return ret;
}
_stream = (*stream)->real_stream;
if (!io_stream_unref(&_stream->iostream)) {
- if (_stream->line_str != NULL)
- str_free(&_stream->line_str);
+ str_free(&_stream->line_str);
i_stream_snapshot_free(&_stream->prev_snapshot);
i_stream_unref(&_stream->parent);
io_stream_free(&_stream->iostream);
timeout_remove(&client->to_disconnect);
timeout_remove(&client->to_auth_waiting);
- if (client->auth_response != NULL)
- str_free(&client->auth_response);
+ str_free(&client->auth_response);
if (client->proxy_password != NULL) {
safe_memset(client->proxy_password, 0,
mail_storage_set_internal_error(aiter->iter.box->storage);
ret = -1;
}
- if (aiter->acl_name != NULL)
- str_free(&aiter->acl_name);
+ str_free(&aiter->acl_name);
i_free(aiter);
return ret;
}
ret = -1;
}
- if (ctx->cmd != NULL)
- str_free(&ctx->cmd);
- if (ctx->cmd_expunge != NULL)
- str_free(&ctx->cmd_expunge);
+ str_free(&ctx->cmd);
+ str_free(&ctx->cmd_expunge);
array_foreach_modifiable(&ctx->fields, field) {
str_free(&field->value);
i_free(field->key);