From: Ben Pfaff Date: Tue, 13 Jan 2009 21:54:46 +0000 (-0800) Subject: Fix memory leak in nl_sock_transact(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a7dc392b71fc3b187b8d2ef3cdf967e176e841c;p=openvswitch Fix memory leak in nl_sock_transact(). --- diff --git a/lib/netlink.c b/lib/netlink.c index 28c1f116..131ed817 100644 --- a/lib/netlink.c +++ b/lib/netlink.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford +/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford * Junior University * * We are making the OpenFlow specification and associated documentation @@ -414,6 +414,7 @@ recv: goto recv; } if (nl_msg_nlmsgerr(reply, &retval)) { + ofpbuf_delete(reply); if (retval) { VLOG_DBG_RL(&rl, "received NAK error=%d (%s)", retval, strerror(retval));