[Liblas-commits] r1089 - trunk/src
liblas-commits at liblas.org
liblas-commits at liblas.org
Sun Mar 8 16:11:20 EDT 2009
Author: hobu
Date: Sun Mar 8 16:11:20 2009
New Revision: 1089
URL: http://liblas.org/changeset/1089
Log:
make sure to only free things that exist
Modified:
trunk/src/las_c_api.cpp
Modified: trunk/src/las_c_api.cpp
==============================================================================
--- trunk/src/las_c_api.cpp (original)
+++ trunk/src/las_c_api.cpp Sun Mar 8 16:11:20 2009
@@ -1775,8 +1775,8 @@
LAS_DLL void LASString_Free(char* string) {
-
- free(string);
+ if (string)
+ free(string);
}
LAS_C_END
More information about the Liblas-commits
mailing list