diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-23 09:10:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-23 09:10:12 +0000 |
commit | 0677cd445197fa1ea202b276561b735c903f8c50 (patch) | |
tree | 52a508dc11c38f7120a1da16965d97352b4a282d /src/libutil/upstream.c | |
parent | 70e79ce3e6885074a22d1526d9a2bfbbb6e5a5ea (diff) | |
download | rspamd-0677cd445197fa1ea202b276561b735c903f8c50.tar.gz rspamd-0677cd445197fa1ea202b276561b735c903f8c50.zip |
Test for atomic ops.
Diffstat (limited to 'src/libutil/upstream.c')
-rw-r--r-- | src/libutil/upstream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/upstream.c b/src/libutil/upstream.c index 63680444e..5b843451f 100644 --- a/src/libutil/upstream.c +++ b/src/libutil/upstream.c @@ -802,6 +802,7 @@ rspamd_upstream_reresolve (struct upstream_ctx *ctx) while (cur) { up = cur->data; + REF_RETAIN (up); if (up->name[0] != '/') { if (rdns_make_request_full (ctx->res, @@ -829,6 +830,7 @@ rspamd_upstream_reresolve (struct upstream_ctx *ctx) } } + REF_RELEASE (up); cur = g_list_next (cur); } } |