[sword-svn] r2173 - trunk/src/modules/common
scribe at www.crosswire.org
scribe at www.crosswire.org
Sun May 18 20:41:27 MST 2008
Author: scribe
Date: 2008-05-18 20:41:27 -0700 (Sun, 18 May 2008)
New Revision: 2173
Modified:
trunk/src/modules/common/rawstr4.cpp
trunk/src/modules/common/zstr.cpp
Log:
forgot to free memory
Modified: trunk/src/modules/common/rawstr4.cpp
===================================================================
--- trunk/src/modules/common/rawstr4.cpp 2008-05-19 03:33:52 UTC (rev 2172)
+++ trunk/src/modules/common/rawstr4.cpp 2008-05-19 03:41:27 UTC (rev 2173)
@@ -217,6 +217,8 @@
if (trybuf)
free(trybuf);
delete [] key;
+ if (maxbuf)
+ free(maxbuf);
}
else tryoff = 0;
Modified: trunk/src/modules/common/zstr.cpp
===================================================================
--- trunk/src/modules/common/zstr.cpp 2008-05-19 03:33:52 UTC (rev 2172)
+++ trunk/src/modules/common/zstr.cpp 2008-05-19 03:41:27 UTC (rev 2173)
@@ -226,6 +226,8 @@
if (trybuf)
free(trybuf);
delete [] key;
+ if (maxbuf)
+ free(maxbuf);
}
else { tryoff = 0; }
More information about the sword-cvs
mailing list