Fix for ASAN Issue TDAF-710: alloc-dealloc mismatch 97/186997/1 accepted/tizen/4.0/unified/20180829.004511 submit/tizen_4.0/20180817.110403
authorsrinivasa.m <srinivasa.m@samsung.com>
Fri, 17 Aug 2018 06:02:27 +0000 (11:32 +0530)
committersrinivasa.m <srinivasa.m@samsung.com>
Fri, 17 Aug 2018 06:02:27 +0000 (11:32 +0530)
Change-Id: Icb19b22d858247a0dd219f08f270a86482505378

src/shared/message.cpp [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index e232ee4..2cf7992
@@ -140,7 +140,7 @@ void message::unref(void)
        if (ref_cnt > 0 || !m_msg)
                return;
 
-       free(m_msg);
+       delete [] m_msg;
        m_msg = NULL;
        delete this;
 }