event_type = strtok_r(msg, ":", &ptr);
if (event_type == NULL) {
ACCOUNT_ERROR("event_type is NULL");
- return;
+ goto END;
}
id = strtok_r(NULL, ":", &ptr);
if (id == NULL) {
ACCOUNT_ERROR("account-id is NULL");
- return;
+ goto END;
}
ACCOUNT_SLOGD("msg(%s), event_type(%s), id(%s)", msg, event_type, id);
tmp->account_subscription_callback(event_msg, account_id, tmp->user_data);
}
+END:
_ACCOUNT_FREE(msg);
-
+ return;
}
ACCOUNT_API int account_unsubscribe_notification_ex(account_subscribe_h account_subscribe)