struct rspamd_map *map;
map = cbd->map;
+ cbd->stage = map_finished;
msg_warn_map ("connection with http server is terminated: worker is stopping");
- free_http_cbdata_common (cbd, FALSE);
+ REF_RELEASE (cbd);
}
/*
map = cbd->map;
+ if (cbd->stage == map_finished) {
+ MAP_RELEASE (cbd, "http_callback_data");
+ return;
+ }
+
if (reply->code == RDNS_RC_NOERROR) {
/*
* We just get the first address hoping that a resolver performs
static void
rspamd_map_backend_dtor (struct rspamd_map_backend *bk)
{
+ g_free (bk->uri);
+
if (bk->protocol == MAP_PROTO_FILE) {
if (bk->data.fd) {
g_free (bk->data.fd->filename);