From: Jesse Gross Date: Mon, 3 Aug 2009 22:19:39 +0000 (-0700) Subject: netdev: Fix memory leak in netdev_open. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=effb3acf60ddf247236f46f69897ccb9582dacd2;p=openvswitch netdev: Fix memory leak in netdev_open. The name of the netdev is copied but is never freed. --- 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; }