From: Vsevolod Stakhov Date: Thu, 23 Apr 2015 17:28:34 +0000 (+0100) Subject: Fix unref for implicit arrays. X-Git-Tag: 0.9.0~166 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=504dfa8d1d22bcd754df087f62f592e2e120e66c;p=thirdparty%2Frspamd.git Fix unref for implicit arrays. --- diff --git a/contrib/libucl/ucl_util.c b/contrib/libucl/ucl_util.c index c409e3f6f0..e770bd50ab 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);