From: Vsevolod Stakhov Date: Sun, 25 Aug 2013 12:14:40 +0000 (+0100) Subject: Fix a problem with referencing. X-Git-Tag: 0.6.0~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9009d7f2098b3392e8e678d1ce73fc8bcc5b1e1;p=thirdparty%2Frspamd.git Fix a problem with referencing. --- diff --git a/src/rcl/rcl_parser.c b/src/rcl/rcl_parser.c index 7ba9bb6bb3..95f54d4821 100644 --- a/src/rcl/rcl_parser.c +++ b/src/rcl/rcl_parser.c @@ -38,7 +38,10 @@ 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; } /**