summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunwook Bae <sunwook45.bae@samsung.com>2013-06-04 10:38:18 +0900
committerSunwook Bae <sunwook45.bae@samsung.com>2013-06-05 15:12:21 +0900
commit41de7d3f6c868916f0d78f8ed87de205691285ef (patch)
tree38e60f4fbb9c2144d117cfb02815e8b858c00fab
parent4c0f19f709059921201c4143b9a66502f0ffd416 (diff)
downloadmessage-port-41de7d3f6c868916f0d78f8ed87de205691285ef.tar.gz
message-port-41de7d3f6c868916f0d78f8ed87de205691285ef.tar.bz2
message-port-41de7d3f6c868916f0d78f8ed87de205691285ef.zip
Fix a prevent issue
Change-Id: I519ff000a0c57cc496069a8cb41b4fdce8f6d14f Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
-rw-r--r--src/MessagePortProxy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/MessagePortProxy.cpp b/src/MessagePortProxy.cpp
index 8954eef..69977fd 100644
--- a/src/MessagePortProxy.cpp
+++ b/src/MessagePortProxy.cpp
@@ -384,6 +384,8 @@ MessagePortProxy::SendMessageInternal(const BundleBuffer& metadata, const Bundle
if (len > MAX_MESSAGE_SIZE)
{
_LOGE("The size of message (%d) has exceeded the maximum limit.", len);
+
+ delete pMsg;
return MESSAGEPORT_ERROR_MAX_EXCEEDED;
}