- HANDLE_LEAK WGID: 305107
- MEMORY_LEAK WGID: 305108, 305111
Change-Id: Ie81e0a3425c1119f834d466979edeb7d4a379899
Signed-off-by: joonbum.ko <joonbum.ko@samsung.com>
snprintf(message, sizeof(message), "WARNING: [%s] Code %d : %s",
pLayerPrefix, msgCode, pMsg);
} else {
+ free(message);
return false;
}
shader_code = malloc(size);
retVal = fread(shader_code, size, 1, fp);
- if (!retVal)
+ if (!retVal) {
+ fclose(fp);
+ free(shader_code);
return NULL;
+ }
*psize = size;