projects
/
platform
/
adaptation
/
emulator
/
emulator-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d86b57c
)
PREVENT: resolved resource leak (fd)
author
Jinhyung Choi
<jinhyung2.choi@samsung.com>
Mon, 20 Jan 2014 01:53:51 +0000
(10:53 +0900)
committer
Jinhyung Choi
<jinhyung2.choi@samsung.com>
Mon, 20 Jan 2014 01:53:51 +0000
(10:53 +0900)
Change-Id: I255837721c47293e5dec2ed428df18611138833b
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
src/get_status.cpp
patch
|
blob
|
history
diff --git
a/src/get_status.cpp
b/src/get_status.cpp
index 1356a8c360de7c65b338a552dbe65dbfe8e7c621..19341fb54a237d2c53071775daf677cd6198b78e 100644
(file)
--- a/
src/get_status.cpp
+++ b/
src/get_status.cpp
@@
-388,11
+388,11
@@
char* get_nfc_status(void* p, bool is_evdi)
char* message = __tmpalloc(5000);
ret = fscanf(fd, "%s\n", message);
+ fclose(fd);
if (ret < 0)
{
return 0;
}
- fclose(fd);
LXT_MESSAGE* packet = (LXT_MESSAGE*)p;
memset(packet, 0, sizeof(LXT_MESSAGE));