Skip to content

Commit

Permalink
valgrind: Fix memory leak at expr_error.
Browse files Browse the repository at this point in the history
Reported by test case 2015: ovn -- action parsing.
    xvasprintf (util.c:164)
    expr_error (expr.c:489)
    expr_parse_field (expr.c:2910)
    action_parse_field (actions.c:287)

Signed-off-by: William Tu <[email protected]>
Signed-off-by: Justin Pettit <[email protected]>
  • Loading branch information
williamtu authored and justinpettit committed Mar 29, 2016
1 parent c4623bb commit 7d433ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ovn/lib/actions.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ action_parse_field(struct action_context *ctx,
&prereqs);
if (error) {
action_error(ctx, "%s", error);
free(error);
return false;
}

Expand Down

0 comments on commit 7d433ae

Please sign in to comment.