Skip to content

Commit

Permalink
actions: Fix memory leak on error path in parse_ct_lb_action().
Browse files Browse the repository at this point in the history
Found by Coverity.

Reported-at: https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14763031&defectInstanceId=4305318&mergedDefectId=180399
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
  • Loading branch information
blp committed Jun 1, 2017
1 parent ac7c828 commit b47875f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ovn/lib/actions.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit b47875f

Please sign in to comment.