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 73657383c13e115115fa935bb4eb41d3edd16e20..dead5fd49a8784b40b6707025cb0fbf7e01a7993 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;
 }