]> git.proxmox.com Git - ovs.git/commitdiff
ofp-util: fix memory leak in ofputil_pull_ofp11_buckets
authorzhongbaisong <zhongbaisong@huawei.com>
Wed, 28 Jun 2017 09:14:41 +0000 (17:14 +0800)
committerBen Pfaff <blp@ovn.org>
Fri, 7 Jul 2017 18:11:11 +0000 (11:11 -0700)
Signed-off-by: zhongbaisong <zhongbaisong@huawei.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/ofp-util.c

index 53178e88c1aa88015e4d6cfd25feef26d02b187b..00b2c6b5abcaac7d6f6c25ae652aa3ec50dac227 100644 (file)
@@ -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);