projects
/
sdk
/
target
/
sdbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e03fe1f
)
[DF181206-00468]Memory leak issue handled
99/195399/2
submit/tizen/20181214.061648
author
alkasethi
<alka.sethi@samsung.com>
Thu, 13 Dec 2018 06:45:16 +0000
(12:15 +0530)
committer
alkasethi
<alka.sethi@samsung.com>
Thu, 13 Dec 2018 09:16:18 +0000
(14:46 +0530)
Change-Id: I2e4e7a91cecc14b12f327482a492c84746a2dd73
Signed-off-by: alkasethi <alka.sethi@samsung.com>
src/plugin.c
patch
|
blob
|
history
diff --git
a/src/plugin.c
b/src/plugin.c
index 222bf8a5b33112bb3d6d6956224dd93a6506a2d6..2e495e9b2d697243370ccd54833a4e23b803d4a5 100644
(file)
--- a/
src/plugin.c
+++ b/
src/plugin.c
@@
-136,6
+136,7
@@
void readxml() {
length = ftell(fptr);
if (length <= 0) {
E("commands.xml is empty\n");
+ fclose(fptr);
return;
}
fseek(fptr, 0, SEEK_SET);
@@
-144,6
+145,8
@@
void readxml() {
result = fread(buffer, 1, length, fptr);
if (result != length) {
E("xml file read error\n");
+ free(buffer);
+ fclose(fptr);
return;
}
}