]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix memory leak in parsing comments
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 15 Jun 2018 12:21:06 +0000 (13:21 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 15 Jun 2018 12:21:06 +0000 (13:21 +0100)
contrib/libucl/ucl_util.c

index 1a3b34293dd436ee04ab7132b7544d003741e027..a65c30cec2515e9810b108f5f4d4ca628ca7ed7e 100644 (file)
@@ -2406,11 +2406,11 @@ ucl_object_insert_key_common (ucl_object_t *top, ucl_object_t *elt,
                        }
                        else {
                                /* Just make a list of scalars */
-                               DL_APPEND (found, elt);
+                               DL_CONCAT (found, elt);
                        }
                }
                else {
-                       DL_APPEND (found, elt);
+                       DL_CONCAT (found, elt);
                }
        }