Fixed Prevent 35137
authorSeunghwan Lee <sh.cat.lee@samsung.com>
Wed, 16 Jan 2013 05:32:17 +0000 (14:32 +0900)
committerSeunghwan Lee <sh.cat.lee@samsung.com>
Wed, 16 Jan 2013 05:32:17 +0000 (14:32 +0900)
plugin/mms_plugin/MmsPluginDecode.cpp

index 7365738..dead5fd 100755 (executable)
@@ -2219,6 +2219,16 @@ __RETURN:
        return true;
 
 __CATCH:
+       if (pMultipart) {
+               if (pMultipart->pBody) {
+                       free(pMultipart->pBody);
+                       pMultipart->pBody = NULL;
+               }
+
+               free(pMultipart);
+               pMultipart = NULL;
+       }
+
        return false;
 }