]> git.droids-corp.org - protos/libecoli.git/commitdiff
fix invalid free
authorOlivier Matz <zer0@droids-corp.org>
Thu, 21 Jun 2018 21:03:57 +0000 (23:03 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 21 Jun 2018 21:03:57 +0000 (23:03 +0200)
lib/ecoli_config.c

index 2eae56066760f228385a751482d2c6f54d7c7c53..aa2d7e30ddef8349b4540da820686fcf9d68e6a3 100644 (file)
@@ -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();