summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhongbaisong <zhongbaisong@huawei.com>2017-06-28 17:14:41 +0800
committerBen Pfaff <blp@ovn.org>2017-07-07 11:11:11 -0700
commitb52953b5916503196bf11d271c6d592633ab0216 (patch)
treec9e06a8239df043a8b0163b6eb0965b38bcb4bd0
parent214ac6d4952f4c45605d20d3b883eab4fa9e2fb2 (diff)
downloadopenvswitch-b52953b5916503196bf11d271c6d592633ab0216.tar.gz
ofp-util: fix memory leak in ofputil_pull_ofp11_buckets
Signed-off-by: zhongbaisong <zhongbaisong@huawei.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
-rw-r--r--lib/ofp-util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index 53178e88c..00b2c6b5a 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -9206,6 +9206,7 @@ ofputil_pull_ofp11_buckets(struct ofpbuf *msg, size_t buckets_length,
if (error) {
ofpbuf_uninit(&ofpacts);
ofputil_bucket_list_destroy(buckets);
+ free(bucket);
return OFPERR_OFPGMFC_BAD_WATCH;
}
bucket->watch_group = ntohl(ob->watch_group);