[sword-svn] r3211 - trunk/utilities

scribe at crosswire.org scribe at crosswire.org
Wed Apr 30 22:12:14 MST 2014


Author: scribe
Date: 2014-04-30 22:12:13 -0700 (Wed, 30 Apr 2014)
New Revision: 3211

Modified:
   trunk/utilities/imp2ld.cpp
Log:
fix1

Modified: trunk/utilities/imp2ld.cpp
===================================================================
--- trunk/utilities/imp2ld.cpp	2014-05-01 05:11:59 UTC (rev 3210)
+++ trunk/utilities/imp2ld.cpp	2014-05-01 05:12:13 UTC (rev 3211)
@@ -235,6 +235,7 @@
 					SWLD::strongsPad(buf);
 					if(strcmp(buf, *key))
 						std::cout << "Warning: entry " << *key << " is a number but not padded correctly. ";
+					delete buf;
 				}
 
 				mod->setEntry(entbuffer.c_str(), entbuffer.size());
@@ -265,13 +266,15 @@
 		std::cout << keybuffer << std::endl;
 		*key = keybuffer.c_str();
 
-				if(paddingCheck) {
-					char *buf = new char [ strlen(*key) + 6 ];
-					strcpy(buf, *key);
-					SWLD::strongsPad(buf);
-					if(strcmp(buf, *key))
-						std::cout << "Warning: entry " << *key << " is a number but not padded correctly. ";
-				}
+		if(paddingCheck) {
+			char *buf = new char [ strlen(*key) + 6 ];
+			strcpy(buf, *key);
+			SWLD::strongsPad(buf);
+			if(strcmp(buf, *key))
+				std::cout << "Warning: entry " << *key << " is a number but not padded correctly. ";
+			delete buf;
+		}
+		
 		mod->setEntry(entbuffer.c_str(), entbuffer.size());
 		for (i = 0; i < links; i++) {
 			std::cout << "Linking: " << linkbuffer[i] << std::endl;




More information about the sword-cvs mailing list