From: Olivier Matz Date: Thu, 21 Jun 2018 21:03:57 +0000 (+0200) Subject: fix invalid free X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9c24cb4c317ef9427903ff888b1d9b481372e5ea;p=protos%2Flibecoli.git fix invalid free --- diff --git a/lib/ecoli_config.c b/lib/ecoli_config.c index 2eae560..aa2d7e3 100644 --- a/lib/ecoli_config.c +++ b/lib/ecoli_config.c @@ -675,7 +675,7 @@ static struct ec_config * ec_config_dict_dup(const struct ec_keyval *dict) { struct ec_config *dup = NULL, *value; - struct ec_keyval_iter *iter; + struct ec_keyval_iter *iter = NULL; const char *key; dup = ec_config_dict();