WGID : 28, 6097
Change-Id: Ifb4ce690655230a922a11d2b99f3b7d901e91b5f
Signed-off-by: Taejin Woo <tt.woo@samsung.com>
bt_uuid16_create(&uuid, GATT_IPSP_UUID);
a = attribute_find(adapter, &uuid);
- if (!a) {
+ if (!a && a->handle != NULL) {
error("Attribute not found for handle 0x%04x", a->handle);
return FALSE;
}
fail:
#ifdef __TIZEN_PATCH__
/* Fix : RESOURCE_LEAK */
- if (char_decl->path)
+ if (char_decl != NULL && char_decl->path != NULL)
g_free(char_decl->path);
if (char_decl)
free(char_decl);