From 7d433ae57ebb90cd68e8fa948a096f619ac4e2d8 Mon Sep 17 00:00:00 2001 From: William Tu Date: Mon, 4 Apr 2016 14:51:30 -0700 Subject: [PATCH] valgrind: Fix memory leak at expr_error. 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 Signed-off-by: Justin Pettit --- ovn/lib/actions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ovn/lib/actions.c b/ovn/lib/actions.c index 44957c7cd..a17b5a7e4 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.39.5