diff options
author | zhongbaisong <zhongbaisong@huawei.com> | 2017-06-28 17:14:41 +0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-07-07 11:11:11 -0700 |
commit | b52953b5916503196bf11d271c6d592633ab0216 (patch) | |
tree | c9e06a8239df043a8b0163b6eb0965b38bcb4bd0 | |
parent | 214ac6d4952f4c45605d20d3b883eab4fa9e2fb2 (diff) | |
download | openvswitch-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.c | 1 |
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); |