[Model] COMMON
[BinType] AP
[Customer] OPEN
[Issue#] NA
[Request] NA
[Occurrence Version] NA
[Problem] Memory Leak.
[Cause & Measure] Fixed memory leak
[Checking Method] NA
[Team] system framework
[Developer] Jiban Prakash
[Solution company] Samsung
[Change Type] Change
Change-Id: Ie6bb20406b0a5708516936f1f27c4a84e1735bb3
Signed-off-by: “JIBAN <p.jiban@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
}
text = gl_text_get(0);
- snprintf(content, len, text, app_id);
- if (app_id)
- free(app_id);
+ if (text) {
+ snprintf(content, len, text, app_id);
+ free(text);
+ }
+ free(app_id);
return 0;
}