Fix a prevent issue
authorSunwook Bae <sunwook45.bae@samsung.com>
Tue, 4 Jun 2013 01:38:18 +0000 (10:38 +0900)
committerSunwook Bae <sunwook45.bae@samsung.com>
Wed, 5 Jun 2013 06:12:21 +0000 (15:12 +0900)
Change-Id: I519ff000a0c57cc496069a8cb41b4fdce8f6d14f
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
src/MessagePortProxy.cpp

index 8954eef..69977fd 100644 (file)
@@ -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;
        }