config: remove spurious free() call
authorSteven Barth <steven@midlink.org>
Thu, 25 Sep 2014 11:52:41 +0000 (13:52 +0200)
committerSteven Barth <steven@midlink.org>
Thu, 25 Sep 2014 11:52:41 +0000 (13:52 +0200)
src/config.c

index 835db13..2c0bc90 100644 (file)
@@ -480,7 +480,6 @@ int config_parse_interface(void *data, size_t len, const char *name, bool overwr
                                domain[domainlen - 1] = 0;
 
                        int len = dn_comp(domain, buf, sizeof(buf), NULL, NULL);
                                domain[domainlen - 1] = 0;
 
                        int len = dn_comp(domain, buf, sizeof(buf), NULL, NULL);
-                       free(domain);
                        if (len <= 0)
                                goto err;
 
                        if (len <= 0)
                                goto err;