Fix some clang analyzer warnings.
[dhcpcd-ui] / src / libdhcpcd / config.c
index d17fd0d462cc809b8546a33552ca38570de824d5..709a8e841c068f6950655b10c896717c2ac0c6c9 100644 (file)
@@ -177,6 +177,7 @@ dhcpcd_config_set1(DHCPCD_OPTION **config, const char *opt, const char *val,
                        o = dhcpcd_option_new("static", t);
                else
                        o = dhcpcd_option_new(opt, val);
+               free(t);
                if (o == NULL)
                        return false;
                if (l == NULL)