From af6bfb14ec3c13cfecb1a0e454a05687a67166af Mon Sep 17 00:00:00 2001 From: Tomasz Swierczek Date: Wed, 9 Jun 2021 12:17:47 +0200 Subject: [PATCH] Fix issue from static analysis Change-Id: I85b43695e06a42deea8026a9dec9bd488600356c --- secure-erase/src/ui.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/secure-erase/src/ui.c b/secure-erase/src/ui.c index f18b405..3ef4c06 100644 --- a/secure-erase/src/ui.c +++ b/secure-erase/src/ui.c @@ -1,6 +1,6 @@ /* * - * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved + * Copyright (c) 2016 - 2021 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -215,6 +215,8 @@ static void reply_password_enter_event_cb(app_control_h ug, app_control_h reply, dlog_print(DLOG_ERROR, LOG_TAG, "failed to clean the device"); ui_app_exit(); } + } else { + free(result_string); } } -- 2.34.1