Signed-off-by: Ji-hoon Jung <jh8801.jung@samsung.com>
Change-Id: Ie7d47a4a9c4b5d04596519bc884f6003b8e3cfcc
pos++;
str = g_new0(gchar, length + 1);
+ if(str == NULL)
+ return NULL;
+
memcpy(str, pos, length);
DEBUG_CLIENT_MSG("key = [%s]", str);
{
data = (data_s *)calloc(1, sizeof(data_s));
if(data == NULL)
+ {
+ g_free(str);
return NULL;
+ }
data->length = length;
if(data->buffer == NULL)
{
free(data);
+ g_free(str);
return NULL;
}
break;
}
+ g_free(str);
+ str = NULL;
+
pos += length;
i++;
}