]> git.proxmox.com Git - mirror_ovs.git/commit
oss-fuzz: Fix memory leak in ofctl_parse_flow
authorYifeng Sun <pkusunyifeng@gmail.com>
Wed, 14 Nov 2018 23:14:05 +0000 (15:14 -0800)
committerBen Pfaff <blp@ovn.org>
Thu, 15 Nov 2018 16:26:30 +0000 (08:26 -0800)
commit581d3bec7b8c714a98744b0b5f48dd7c7c4db037
treec1d9b5dee88ffcef0061f68c8335f2cc328ac083
parent0f3a7416b4b30abb5f7e3005712d4c4e3acc04b3
oss-fuzz: Fix memory leak in ofctl_parse_flow

If parse_ofp_flow_mod_str returns no error, ofputil_flow_mod.match
contains allocated memory that should be free. This patch fixes it.

Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11343
Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
tests/oss-fuzz/ofctl_parse_target.c