]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix refcounts when map is specified by IP
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 21 Oct 2016 16:43:52 +0000 (17:43 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 21 Oct 2016 16:43:52 +0000 (17:43 +0100)
src/libutil/map.c

index a1539525b21ad8383a07b33b55db24f5f2baec41..5ef04b9f7d540d3ea3dbb50a94d563a8dcb8cdf1 100644 (file)
@@ -819,6 +819,7 @@ rspamd_map_common_http_callback (struct rspamd_map *map, struct rspamd_map_backe
                                        cbd->map->cfg->libs_ctx->ssl_ctx);
 
                        write_http_request (cbd);
+                       MAP_RELEASE (cbd, "http_callback_data");
                }
                else {
                        msg_warn_map ("cannot load map: cannot connect to %s: %s",