]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix detaching of shared memory segments
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 Jul 2016 18:11:54 +0000 (19:11 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 18 Jul 2016 18:11:54 +0000 (19:11 +0100)
src/libutil/http.c

index 7aabba29647aec45c86f3e8fefa4377240f94dfe..dd3302ee32b83ddfaeb171a5e09d010a6d329b0f 100644 (file)
@@ -1601,8 +1601,6 @@ rspamd_http_detach_shared (struct rspamd_http_message *msg)
                msg->body_buf.c.shared.shm_fd = -1;
        }
 
-       REF_RELEASE (msg->body_buf.c.shared.name);
-
        cpy_str = rspamd_fstring_new_init (msg->body_buf.begin, msg->body_buf.len);
        rspamd_http_message_set_body_from_fstring_steal (msg, cpy_str);
 }