diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-23 18:28:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-23 18:28:34 +0100 |
commit | 504dfa8d1d22bcd754df087f62f592e2e120e66c (patch) | |
tree | a96e6a79aa052a9f7fcbaf03a11c047838941d38 /contrib | |
parent | 1e479ff05948433d35602b0443260de904d405c1 (diff) | |
download | rspamd-504dfa8d1d22bcd754df087f62f592e2e120e66c.tar.gz rspamd-504dfa8d1d22bcd754df087f62f592e2e120e66c.zip |
Fix unref for implicit arrays.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libucl/ucl_util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/libucl/ucl_util.c b/contrib/libucl/ucl_util.c index c409e3f6f..e770bd50a 100644 --- a/contrib/libucl/ucl_util.c +++ b/contrib/libucl/ucl_util.c @@ -230,11 +230,13 @@ ucl_object_free_internal (ucl_object_t *obj, bool allow_rec, ucl_object_dtor dto kv_destroy (*vec); UCL_FREE (sizeof (*vec), vec); } + obj->value.av = NULL; } else if (obj->type == UCL_OBJECT) { if (obj->value.ov != NULL) { ucl_hash_destroy (obj->value.ov, (ucl_hash_free_func *)dtor); } + obj->value.ov = NULL; } tmp = obj->next; dtor (obj); |