You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by pf...@apache.org on 2015/11/29 21:50:47 UTC
svn commit: r1717122 - /openoffice/trunk/main/hwpfilter/source/hwpread.cpp
Author: pfg
Date: Sun Nov 29 20:50:47 2015
New Revision: 1717122
URL: http://svn.apache.org/viewvc?rev=1717122&view=rev
Log:
Resource Leak
CID: 983009
Modified:
openoffice/trunk/main/hwpfilter/source/hwpread.cpp
Modified: openoffice/trunk/main/hwpfilter/source/hwpread.cpp
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/hwpfilter/source/hwpread.cpp?rev=1717122&r1=1717121&r2=1717122&view=diff
==============================================================================
--- openoffice/trunk/main/hwpfilter/source/hwpread.cpp (original)
+++ openoffice/trunk/main/hwpfilter/source/hwpread.cpp Sun Nov 29 20:50:47 2015
@@ -327,6 +327,7 @@ int TxtBox::Read(HWPFile & hwpf)
}
TCell* *pArr = ::comphelper::newArray_null<TCell *>(ncell);
if (!pArr) {
+ delete tbl;
return hwpf.SetState(HWP_InvalidFileFormat);
}
for( ii = 0 ; ii < ncell; ii++)