]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix double free
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 11 Jan 2017 11:54:23 +0000 (11:54 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 11 Jan 2017 11:54:23 +0000 (11:54 +0000)
src/worker.c

index e7d71a99d175377de094de0d40e4da8e15ccd334..9d4b175a3549186cf7c1b322989ee63a471d398d 100644 (file)
@@ -112,8 +112,6 @@ rspamd_worker_call_finish_handlers (struct rspamd_worker *worker)
                }
 
                if (rspamd_session_pending (task->s)) {
-                       rspamd_session_destroy (task->s);
-
                        return TRUE;
                }
        }