This patch frees the leaked free string to stop oss-fuzz from
complaining.
Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11161
Signed-off-by: Yifeng Sun <[email protected]>
---
tests/oss-fuzz/ofctl_parse_target.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/oss-fuzz/ofctl_parse_target.c
b/tests/oss-fuzz/ofctl_parse_target.c
index 13d0899dbbae..8a906400a5cc 100644
--- a/tests/oss-fuzz/ofctl_parse_target.c
+++ b/tests/oss-fuzz/ofctl_parse_target.c
@@ -58,6 +58,7 @@ ofctl_parse_flow(const char *input, int command)
command, &usable_protocols);
if (error) {
printf("Error encountered: %s\n", error);
+ free(error);
} else {
ofctl_parse_flows__(&fm, 1, usable_protocols);
}
--
2.7.4
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev