From effb3acf60ddf247236f46f69897ccb9582dacd2 Mon Sep 17 00:00:00 2001 From: Jesse Gross Date: Mon, 3 Aug 2009 15:19:39 -0700 Subject: [PATCH] netdev: Fix memory leak in netdev_open. The name of the netdev is copied but is never freed. --- lib/netdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/netdev.c b/lib/netdev.c index 38610e11..5724f495 100644 --- a/lib/netdev.c +++ b/lib/netdev.c @@ -161,6 +161,7 @@ netdev_open(const char *name_, int ethertype, struct netdev **netdevp) exit: *netdevp = error ? NULL : netdev; + free(name); return error; } -- 2.30.2