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:
df1ff01
)
PREVENT: resource leak (delete [])
author
Jinhyung Choi
<jinhyung2.choi@samsung.com>
Mon, 20 Jan 2014 01:50:11 +0000
(10:50 +0900)
committer
Jinhyung Choi
<jinhyung2.choi@samsung.com>
Mon, 20 Jan 2014 01:50:11 +0000
(10:50 +0900)
Change-Id: I9221be7afe944acc286e9bdc70743cabff3a465b
Signed-off-by: Jinhyung Choi <jinhyung2.choi@samsung.com>
src/emuld_proc.cpp
patch
|
blob
|
history
diff --git
a/src/emuld_proc.cpp
b/src/emuld_proc.cpp
index 7853ed996a34803dbddf6c11f35ceff37d40fa9c..16557e3213844c02b6fa829cf8d75515450472e1 100644
(file)
--- a/
src/emuld_proc.cpp
+++ b/
src/emuld_proc.cpp
@@
-833,7
+833,7
@@
bool msgproc_sdcard(const int sockfd, ijcommand* ijcmd, const bool is_evdi)
memcpy(tmp + HEADER_SIZE + mntData->length, mountinfo, mountinfo_size);
mntData->length += mountinfo_size;
memcpy(tmp, mntData, HEADER_SIZE);
- delete mountinfo;
+ delete
[]
mountinfo;
mountinfo = NULL;
}