Found by Coverity.

Reported-at: 
https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14763031&defectInstanceId=4305318&mergedDefectId=180399
Signed-off-by: Ben Pfaff <[email protected]>
---
 ovn/lib/actions.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ovn/lib/actions.c b/ovn/lib/actions.c
index 71f49c13fcca..937f94d80bbb 100644
--- a/ovn/lib/actions.c
+++ b/ovn/lib/actions.c
@@ -884,6 +884,7 @@ parse_ct_lb_action(struct action_context *ctx)
         while (!lexer_match(ctx->lexer, LEX_T_RPAREN)) {
             if (ctx->lexer->token.type != LEX_T_INTEGER
                 || mf_subvalue_width(&ctx->lexer->token.value) > 32) {
+                free(dsts);
                 lexer_syntax_error(ctx->lexer, "expecting IPv4 address");
                 return;
             }
-- 
2.10.2

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to