Need to free the memory before return. Detected by gcc10.
Signed-off-by: William Tu <[email protected]>
---
lib/ofp-actions.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c
index ef8b2b4527f9..a94d1a7ca918 100644
--- a/lib/ofp-actions.c
+++ b/lib/ofp-actions.c
@@ -5966,6 +5966,7 @@ parse_CLONE(char *arg, const struct ofpact_parse_params
*pp)
clone = pp->ofpacts->header;
if (ofpbuf_oversized(pp->ofpacts)) {
+ free(error);
return xasprintf("input too big");
}
--
2.7.4
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev