Fix for ASAN Issue TDAF-710: alloc-dealloc mismatch 44/186544/2
authorsrinivasa.m <srinivasa.m@samsung.com>
Fri, 10 Aug 2018 07:15:03 +0000 (12:45 +0530)
committerrandeep singh <randeep.s@samsung.com>
Mon, 13 Aug 2018 08:35:58 +0000 (08:35 +0000)
Change-Id: I7e674bbf76cac80fcae0396ae4a4a8df1c44d034

src/shared/message.cpp

index 6bffc8c..489ebac 100644 (file)
@@ -147,7 +147,7 @@ void message::unref(void)
        if (ref_cnt > 0 || !m_msg)
                return;
 
-       free(m_msg);
+       delete [] m_msg;
        m_msg = NULL;
        delete this;
 }