diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-18 18:37:12 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-18 18:37:12 +0400 |
commit | 6a2422fe75904e8072bdf48502d0245f89e1a0e2 (patch) | |
tree | 2267c37d530df06d014d6e52c1c071379abc6ac3 | |
parent | bada3312a8c1c6cdca474e99c74babb759e65823 (diff) | |
download | rspamd-6a2422fe75904e8072bdf48502d0245f89e1a0e2.tar.gz rspamd-6a2422fe75904e8072bdf48502d0245f89e1a0e2.zip |
Ref hash table at settings loading.
-rw-r--r-- | src/settings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.c b/src/settings.c index 1eb5da2d6..59b2a9ea6 100644 --- a/src/settings.c +++ b/src/settings.c @@ -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; |