Change-Id: Id7d3deea639b48f32a566584f84c33682ec0ae75
Signed-off-by: shivakumar jagalur matt <shiva.jm@samsung.com>
msg_set_str_value(pushInfo, MSG_PUSH_CONFIG_APPLICATON_ID_STR, pWapAppId, MAX_WAPPUSH_ID_LEN);
msg_set_str_value(pushInfo, MSG_PUSH_CONFIG_PACKAGE_NAME_STR, pPkgName, MSG_FILEPATH_LEN_MAX);
free(pPkgName);
+ pPkgName = null;
err = msg_delete_push_event(__msgHandle, pushInfo);
msg_release_struct(&pushInfo);
return r;
CATCH:
- free(pPkgName);
- msg_release_struct(&pushInfo);
+ if (pPkgName)
+ {
+ free(pPkgName);
+ pPkgName = null;
+ }
+
+ if (pushInfo)
+ {
+ msg_release_struct(&pushInfo);
+ pushInfo = null;
+ }
if (pWapAppId)
{