]> source.dussan.org Git - rspamd.git/commitdiff
Fix a problem with referencing.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 25 Aug 2013 12:14:40 +0000 (13:14 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 25 Aug 2013 12:14:40 +0000 (13:14 +0100)
src/rcl/rcl_parser.c

index 7ba9bb6bb3f83615b4ea4ef074b638a6de29377d..95f54d4821240b87127eff5c51cc7323992d9759 100644 (file)
 static inline rspamd_cl_object_t *
 rspamd_cl_object_new (void)
 {
-       return g_slice_alloc0 (sizeof (rspamd_cl_object_t));
+       rspamd_cl_object_t *new;
+       new = g_slice_alloc0 (sizeof (rspamd_cl_object_t));
+       new->ref = 1;
+       return new;
 }
 
 /**