From f01d3132ce8754efa88ca211c0742301ab8729ac Mon Sep 17 00:00:00 2001 From: jusung son Date: Tue, 29 May 2018 15:59:11 +0900 Subject: [PATCH] Fix double free Change-Id: I6b67d246efa0cb018c4dd5ffa44db4564ab55b1f Signed-off-by: jusung son --- common/direct.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/direct.c b/common/direct.c index e953459..1c5e002 100644 --- a/common/direct.c +++ b/common/direct.c @@ -537,8 +537,7 @@ int direct_dump(const struct buxton_layer *layer, ret = get_path(layer->uid, BUXTON_LAYER_NORMAL, ly, path, sizeof(path)); if (ret == -1) { - buxton_free_keys(base_keys); - buxton_free_keys((char **)base_values); + bxt_err("dump: get_path failed"); goto out; } -- 2.7.4