fix leak
authorOlivier Matz <zer0@droids-corp.org>
Thu, 21 Jun 2018 21:04:04 +0000 (23:04 +0200)
committerOlivier Matz <zer0@droids-corp.org>
Thu, 21 Jun 2018 21:04:04 +0000 (23:04 +0200)
lib/ecoli_node.c

index a181835..d936302 100644 (file)
@@ -212,6 +212,7 @@ ec_node_set_config(struct ec_node *node, struct ec_config *config)
        return 0;
 
 fail:
+       ec_config_free(config);
        return -1;
 }