From 2a7dc392b71fc3b187b8d2ef3cdf967e176e841c Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 13 Jan 2009 13:54:46 -0800 Subject: [PATCH] Fix memory leak in nl_sock_transact(). --- lib/netlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.30.2