]> source.dussan.org Git - rspamd.git/commitdiff
Ref hash table at settings loading.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 18 Jul 2011 14:37:12 +0000 (18:37 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 18 Jul 2011 14:37:12 +0000 (18:37 +0400)
src/settings.c

index 1eb5da2d6d4cb751509f0e4da561379baa583ca6..59b2a9ea689abaa567fc9fb7974bfb2d8f6b80f1 100644 (file)
@@ -85,7 +85,7 @@ json_read_cb (memory_pool_t * pool, u_char * chunk, size_t len, struct map_cb_da
 
        if (data->cur_data == NULL) {
                jb = g_malloc (sizeof (struct json_buf));
-               jb->table = ((struct json_buf *)data->prev_data)->table;
+               jb->table = g_hash_table_ref (((struct json_buf *)data->prev_data)->table);
                jb->buf = NULL;
                jb->pos = NULL;
                data->cur_data = jb;