[Tizen-submit] 3401: Changes to Tizen:2.1:Main/osp-messaging

noreply at tizen.org noreply at tizen.org
Fri Apr 26 14:59:50 GMT 2013


Hi,
Jinkun Jang have made the following changes to osp-messaging in project Tizen:2.1:Main. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #3401

  submit:       Tizen:2.1:Main:build/osp-messaging(cleanup) -> Tizen:2.1:Main


Message:
Submitter: Jinkun Jang <jinkun.jang at samsung.com>
Comments: upload latest
Git project: framework/osp/messaging
Tag: submit/tizen_2.1/20130426.150017
Commit: b834174 Fix for Double free error check in FMessaging

State:   new        2013-04-26T07:30:28 tizenrobot
Comment: <no comment>
spec files:
-----------
--- osp-messaging.spec
+++ osp-messaging.spec
@@ -5,7 +5,7 @@
 Summary:	osp messaging library
 Version:	1.2.1.0
 Release:	2
-VCS:        framework/osp/messaging#2.1_release-0-g9b492e0
+VCS:        framework/osp/messaging#submit/tizen_2.1/20130426.150017-0-gb834174
 Group:		System/Libraries
 License:	Apache License, Version 2.0
 Source0:	%{name}-%{version}.tar.gz

other changes:
--------------

++++++ osp-messaging-1.2.1.0.tar.gz
--- /src/FMsg_WapPushManagerImpl.cpp
+++ /src/FMsg_WapPushManagerImpl.cpp
@@ -264,6 +264,7 @@
 	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);
@@ -285,8 +286,17 @@
 	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)
 	{


More information about the Tizen-submit mailing list