From 3217834ce2456b70c8492c52ec29c877b2b06c85 Mon Sep 17 00:00:00 2001 From: Wook Song Date: Fri, 24 Feb 2017 13:26:09 +0900 Subject: [PATCH] pmqos: Add missing pmqos_put_scenario for freeing data This patch adds missing pmqos_put_scenario function calls for avoiding possible memory leaks. Change-Id: If3372c279d8115106c9e9cf96a205d080759f7a5 Signed-off-by: Wook Song --- src/pmqos/pmqos.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pmqos/pmqos.c b/src/pmqos/pmqos.c index ea40cb7..baaf748 100644 --- a/src/pmqos/pmqos.c +++ b/src/pmqos/pmqos.c @@ -356,7 +356,10 @@ static int get_methods_from_conf(const char *path, struct edbus_method **edbus_m } *edbus_methods = methods; - return scenarios.num; + ret = scenarios.num; + pmqos_put_scenario(&scenarios); + + return ret; } /* Add pmqos name as alphabetically */ -- 2.7.4