[ovs-dev] [PATCH] valgrind: Fix memory leak at expr_error.
William Tu
u9012063 at gmail.com
Mon Apr 4 21:51:30 UTC 2016
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 <u9012063 at gmail.com>
---
ovn/lib/actions.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ovn/lib/actions.c b/ovn/lib/actions.c
index 44957c7..a17b5a7 100644
--- a/ovn/lib/actions.c
+++ b/ovn/lib/actions.c
@@ -288,6 +288,7 @@ action_parse_field(struct action_context *ctx,
&prereqs);
if (error) {
action_error(ctx, "%s", error);
+ free(error);
return false;
}
--
2.5.0
More information about the dev
mailing list