From: Felix Fietkau Date: Wed, 5 Oct 2011 23:54:16 +0000 (+0200) Subject: fix a double free / use after free X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=f1b77140237f2f6e7f6b755b5a60ab212782456e fix a double free / use after free --- diff --git a/device.c b/device.c index f856f22..ccf66d7 100644 --- a/device.c +++ b/device.c @@ -435,7 +435,6 @@ device_create(const char *name, const struct device_type *type, device_set_present(odev, false); device_set_present(odev, true); } - free(config); return odev; case DEV_CONFIG_NO_CHANGE: D(DEVICE, "Device '%s': no configuration change\n", odev->ifname);