]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Fixed unit test to not access freed memory.
authorTimo Sirainen <tss@iki.fi>
Wed, 7 Jul 2010 11:26:55 +0000 (12:26 +0100)
committerTimo Sirainen <tss@iki.fi>
Wed, 7 Jul 2010 11:26:55 +0000 (12:26 +0100)
--HG--
branch : HEAD

src/dsync/test-dsync-brain.c

index ee56546fcad707fc9502cc2f27b89e9e6ebb673d..40c8f3c5b9d048e72eff0004521d1494ee97bb63 100644 (file)
@@ -268,9 +268,9 @@ static void test_dsync_brain_full(void)
        test_assert(!test_dsync_worker_next_box_event(src_test_worker, &box_event));
        test_assert(!test_dsync_worker_next_box_event(dest_test_worker, &box_event));
 
+       dsync_brain_deinit(&brain);
        dsync_worker_deinit(&src_worker);
        dsync_worker_deinit(&dest_worker);
-       dsync_brain_deinit(&brain);
 
        test_end();
 }