summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-03-29 14:33:49 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-03-29 14:34:44 +0900
commit45858fb24bd458f950ccde042bf1f4380bd1d7c1 (patch)
treea5a5d96237febdba365834cf2694b50d047eb617
parente29fc132edc9141b84ec90a8fa1cd71c77be04d4 (diff)
downloadfactory-reset-accepted/tizen_unified.tar.gz
factory-reset-accepted/tizen_unified.tar.bz2
factory-reset-accepted/tizen_unified.zip
Change-Id: I4b8f2a32eb703e39f62b0a1e4d119bfc3a068c5a Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
-rw-r--r--src/rstsmack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rstsmack.c b/src/rstsmack.c
index 8ca51e1..8513897 100644
--- a/src/rstsmack.c
+++ b/src/rstsmack.c
@@ -95,6 +95,7 @@ static int parse_and_set(const char *srcfile)
linebuf[linebuf_len - 1] = '\0';
else {
LOGINFO("Invalid label length (%u)\n", linebuf_len);
+ fclose(fp);
return -1;
}
LOGINFO("no label, set label: %s, access=\"_\"(floor)\n", linebuf);