Add missing log and pointer reset code 95/289495/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 9 Mar 2023 01:46:20 +0000 (10:46 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 9 Mar 2023 01:46:20 +0000 (10:46 +0900)
commitd63493f5ff2af347ba5f3c1e469807c93fbe7f4e
tree81a9d9fbb5bb7d8f3fffa5a2a004fbfcb1a479c7
parenta01e9c5042090b44e87e5786dd73ea2a4b629803
Add missing log and pointer reset code

- Issue:
In some condition, the file pointer did not closed and made a memory
leakage.

- Solution:
In previous patch, a log for checking error status was missed. So, the
behavior of the code was not predictable. Thus, this patch restores the
log and also adds pointer reset code in order to prevent memory leakage.
Through this patch, the code will work as intented.

Change-Id: Id2524f579bd68e0f757910dbdf93e482dc402755
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/stte.c