Fix issue from static analysis 44/259544/1 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified tizen tizen_6.5 tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/6.5/unified/20211028.123205 accepted/tizen/7.0/unified/20221110.062048 accepted/tizen/7.0/unified/hotfix/20221116.105625 accepted/tizen/8.0/unified/20231005.093656 accepted/tizen/9.0/unified/20241030.234156 accepted/tizen/unified/20210614.131703 submit/tizen/20210611.014622 submit/tizen/20210614.043621 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
authorTomasz Swierczek <t.swierczek@samsung.com>
Wed, 9 Jun 2021 10:17:47 +0000 (12:17 +0200)
committerTomasz Swierczek <t.swierczek@samsung.com>
Wed, 9 Jun 2021 10:17:47 +0000 (12:17 +0200)
Change-Id: I85b43695e06a42deea8026a9dec9bd488600356c

secure-erase/src/ui.c

index f18b4057ec96df4a7b9b3274e41b8c616a56ba49..3ef4c063e155737ce70dba6170c65b5c051f330b 100644 (file)
@@ -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);
        }
 }