Change-Id: I1c3a18844118890d8f062e828aba84a73ff2bbab
Signed-off-by: saerome kim <saerome.kim@samsung.com>
/* Allocate memory */
plugin = g_malloc0(sizeof(ZigBeePlugin));
/* Allocate memory */
plugin = g_malloc0(sizeof(ZigBeePlugin));
+ if (NULL == plugin)
+ return NULL;
/* Update fields */
plugin->plugin_name = g_strdup(plugin_name);
/* Update fields */
plugin->plugin_name = g_strdup(plugin_name);
/* Create new plug-in */
plugin = zblib_plugin_new(service, filename, descriptor, handle);
if (G_UNLIKELY(NULL == plugin)) {
/* Create new plug-in */
plugin = zblib_plugin_new(service, filename, descriptor, handle);
if (G_UNLIKELY(NULL == plugin)) {
g_free(filename);
continue;
}
g_free(filename);
continue;
}