==27740== ==27740== ERROR SUMMARY: 8176 errors from 246 contexts (suppressed: 458 from 1) ==27740== malloc/free: in use at exit: 5,066,565 bytes in 6,709 blocks. ==27740== malloc/free: 1,078,222 allocs, 1,071,513 frees, 424,350,257 bytes allocated. ==27740== For counts of detected errors, rerun with: -v ==27740== searching for pointers to 6,709 not-freed blocks. ==27740== checked 7,692,276 bytes. ==27740== ==27740== ==27740== 16 bytes in 1 blocks are definitely lost in loss record 39 of 205 ==27740== at 0x4022F0C: operator new(unsigned) (vg_replace_malloc.c:163) ==27740== by 0x403B22E: initGEOS (in /usr/lib/libgeos_c.so.1.1.1) ==27740== by 0x4927221: OGRGeometry::exportToGEOS() const (ogrgeometry.cpp:1499) ==27740== by 0x49276CB: OGRGeometry::IsEmpty() const (ogrgeometry.cpp:1121) ==27740== by 0x4926621: OGR_G_IsEmpty (ogrgeometry.cpp:1137) ==27740== by 0x650992E: _wrap_Geometry_IsEmpty (ogr_wrap.cpp:3460) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80C9314: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80C9314: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== ==27740== ==27740== 35 bytes in 7 blocks are definitely lost in loss record 57 of 205 ==27740== at 0x4022765: malloc (vg_replace_malloc.c:149) ==27740== by 0x40FE2CF: strdup (in /lib/tls/i686/cmov/libc-2.6.1.so) ==27740== by 0x47AB5C4: VSIStrdup (cpl_vsisimple.cpp:311) ==27740== by 0x4798284: CPLStrdup (cpl_conv.cpp:228) ==27740== by 0x4573E1C: IdrisiDataset::Wkt2GeoReference(char const*, char const**, char const**) (IdrisiDataset.cpp:2425) ==27740== by 0x4577D23: IdrisiDataset::SetProjection(char const*) (IdrisiDataset.cpp:1207) ==27740== by 0x4578DC4: IdrisiDataset::CreateCopy(char const*, GDALDataset*, int, char**, int (*)(double, char const*, void*), void*) (IdrisiDataset.cpp:972) ==27740== by 0x477E4D3: GDALDriver::CreateCopy(char const*, GDALDataset*, int, char**, int (*)(double, char const*, void*), void*) (gdaldriver.cpp:531) ==27740== by 0x477E699: GDALCreateCopy (gdaldriver.cpp:570) ==27740== by 0x4430548: _wrap_Driver_CreateCopy (gdal_wrap.cpp:2924) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== ==27740== ==27740== 745 (560 direct, 185 indirect) bytes in 20 blocks are definitely lost in loss record 145 of 205 ==27740== at 0x4022F0C: operator new(unsigned) (vg_replace_malloc.c:163) ==27740== by 0x4936996: OGR_Fld_Create (ogrfielddefn.cpp:92) ==27740== by 0x6511976: _wrap_new_FieldDefn (ogr_wrap.cpp:3278) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x81123E0: (within /usr/bin/python2.5) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x8062B43: (within /usr/bin/python2.5) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x809CC0A: (within /usr/bin/python2.5) ==27740== by 0x809F7D2: (within /usr/bin/python2.5) ==27740== ==27740== ==27740== 951 (72 direct, 879 indirect) bytes in 3 blocks are definitely lost in loss record 147 of 205 ==27740== at 0x4021AA4: calloc (vg_replace_malloc.c:279) ==27740== by 0x47AB667: VSICalloc (cpl_vsisimple.cpp:270) ==27740== by 0x47994DF: CPLCalloc (cpl_conv.cpp:81) ==27740== by 0x479BD0B: CPLHTTPFetch (cpl_http.cpp:101) ==27740== by 0x49426C7: OGRSpatialReference::importFromUrl(char const*) (ogrspatialreference.cpp:1722) ==27740== by 0x49428C5: OSRImportFromUrl (ogrspatialreference.cpp:1775) ==27740== by 0x63EE361: _wrap_SpatialReference_ImportFromUrl (osr_wrap.cpp:3250) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80C9314: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== ==27740== ==27740== 156 (36 direct, 120 indirect) bytes in 1 blocks are definitely lost in loss record 148 of 205 ==27740== at 0x4022765: malloc (vg_replace_malloc.c:149) ==27740== by 0x41729B2: (within /lib/tls/i686/cmov/libc-2.6.1.so) ==27740== by 0x4173208: __nss_database_lookup (in /lib/tls/i686/cmov/libc-2.6.1.so) ==27740== by 0x6A26FDB: ??? ==27740== by 0x6A2811C: ??? ==27740== by 0x411FEEB: getpwuid_r (in /lib/tls/i686/cmov/libc-2.6.1.so) ==27740== by 0x53CA7AD: (within /usr/lib/libpq.so.5.0) ==27740== by 0x53B7099: (within /usr/lib/libpq.so.5.0) ==27740== by 0x53BA506: (within /usr/lib/libpq.so.5.0) ==27740== by 0x53BA762: (within /usr/lib/libpq.so.5.0) ==27740== by 0x53BB0D9: PQconnectStart (in /usr/lib/libpq.so.5.0) ==27740== by 0x53BB131: PQconnectdb (in /usr/lib/libpq.so.5.0) ==27740== ==27740== ==27740== 126 bytes in 3 blocks are definitely lost in loss record 153 of 205 ==27740== at 0x4022765: malloc (vg_replace_malloc.c:149) ==27740== by 0x47AB63C: VSIMalloc (cpl_vsisimple.cpp:280) ==27740== by 0x479857A: CPLMalloc (cpl_conv.cpp:129) ==27740== by 0x479D5EC: CPLSerializeXMLTree (cpl_minixml.cpp:960) ==27740== by 0x4432636: _wrap_SerializeXMLTree (gdal_wrap.cpp:11843) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80C9314: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80C9314: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== ==27740== ==27740== 574 (36 direct, 538 indirect) bytes in 1 blocks are definitely lost in loss record 164 of 205 ==27740== at 0x4022F0C: operator new(unsigned) (vg_replace_malloc.c:163) ==27740== by 0x49358E7: OGRStyleMgr::CreateStyleToolFromStyleString(char const*) (ogrfeaturestyle.cpp:434) ==27740== by 0x4935D1C: OGRStyleMgr::GetPart(int, char const*) (ogrfeaturestyle.cpp:399) ==27740== by 0x4898859: OGRDGNLayer::TranslateLabel(OGRFeature*) (ogrdgnlayer.cpp:875) ==27740== by 0x4898DCA: OGRDGNLayer::CreateFeatureWithGeom(OGRFeature*, OGRGeometry*) (ogrdgnlayer.cpp:982) ==27740== by 0x4899272: OGRDGNLayer::CreateFeature(OGRFeature*) (ogrdgnlayer.cpp:937) ==27740== by 0x48B736C: OGR_L_CreateFeature (ogrlayer.cpp:440) ==27740== by 0x650F662: _wrap_Layer_CreateFeature (ogr_wrap.cpp:3015) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== ==27740== ==27740== 780 bytes in 10 blocks are definitely lost in loss record 170 of 205 ==27740== at 0x4022B9C: operator new[](unsigned) (vg_replace_malloc.c:195) ==27740== by 0x4F5377C: xercesc_2_7::ICULCPTranscoder::transcode(char const*) (in /usr/lib/libxerces-c.so.27.0) ==27740== by 0x50284BC: xercesc_2_7::XMLString::transcode(char const*) (in /usr/lib/libxerces-c.so.27.0) ==27740== by 0x47F719B: GMLReader::SetupParser() (gmlreader.cpp:190) ==27740== by 0x47F75E8: GMLReader::NextFeature() (gmlreader.cpp:246) ==27740== by 0x48A3F6A: OGRGMLLayer::GetNextFeature() (ogrgmllayer.cpp:129) ==27740== by 0x48B74AD: OGR_L_GetNextFeature (ogrlayer.cpp:394) ==27740== by 0x650FABE: _wrap_Layer_GetNextFeature (ogr_wrap.cpp:3006) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== ==27740== ==27740== 847 (120 direct, 727 indirect) bytes in 1 blocks are definitely lost in loss record 172 of 205 ==27740== at 0x4022F0C: operator new(unsigned) (vg_replace_malloc.c:163) ==27740== by 0x4897085: OGRDataSource::ExecuteSQL(char const*, OGRGeometry*, char const*) (ogrdatasource.cpp:834) ==27740== by 0x48DC5C2: OGRShapeDataSource::ExecuteSQL(char const*, OGRGeometry*, char const*) (ogrshapedatasource.cpp:690) ==27740== by 0x4895C4B: OGR_DS_ExecuteSQL (ogrdatasource.cpp:856) ==27740== by 0x651517F: _wrap_DataSource_ExecuteSQL (ogr_wrap.cpp:2975) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80C9314: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80C9314: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== ==27740== ==27740== 1,437 bytes in 81 blocks are possibly lost in loss record 178 of 205 ==27740== at 0x4022F0C: operator new(unsigned) (vg_replace_malloc.c:163) ==27740== by 0x4BA28C0: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator const&) (in /usr/lib/libstdc++.so.6.0.9) ==27740== by 0x4BA3BC4: (within /usr/lib/libstdc++.so.6.0.9) ==27740== by 0x4BA3DD6: std::string::string(char const*, std::allocator const&) (in /usr/lib/libstdc++.so.6.0.9) ==27740== by 0x458EB00: CPLString::CPLString(char const*) (cpl_string.h:178) ==27740== by 0x47A7327: VSIMemFilesystemHandler::Open(char const*, char const*) (cpl_vsi_mem.cpp:396) ==27740== by 0x47A98BA: VSIFOpenL (cpl_vsil.cpp:266) ==27740== by 0x479D6A6: CPLSerializeXMLTreeToFile (cpl_minixml.cpp:1782) ==27740== by 0x478537F: GDALPamDataset::TrySaveXML() (gdalpamdataset.cpp:751) ==27740== by 0x4787477: GDALPamDataset::FlushCache() (gdalpamdataset.cpp:157) ==27740== by 0x469E11D: PAuxDataset::~PAuxDataset() (pauxdataset.cpp:323) ==27740== by 0x4778DD7: GDALClose (gdaldataset.cpp:1912) ==27740== ==27740== ==27740== 1,676 bytes in 80 blocks are possibly lost in loss record 180 of 205 ==27740== at 0x4022F0C: operator new(unsigned) (vg_replace_malloc.c:163) ==27740== by 0x4F6FD25: xercesc_2_7::MemoryManagerImpl::allocate(unsigned) (in /usr/lib/libxerces-c.so.27.0) ==27740== by 0x5038C6F: xercesc_2_7::XMemory::operator new(unsigned, xercesc_2_7::MemoryManager*) (in /usr/lib/libxerces-c.so.27.0) ==27740== by 0x4F6ACC0: xercesc_2_7::XMLPlatformUtils::makeMutex(xercesc_2_7::MemoryManager*) (in /usr/lib/libxerces-c.so.27.0) ==27740== by 0x4F71BFA: xercesc_2_7::XMLMutex::XMLMutex(xercesc_2_7::MemoryManager*) (in /usr/lib/libxerces-c.so.27.0) ==27740== by 0x4F7F751: xercesc_2_7::XMLPlatformUtils::Initialize(char const*, char const*, xercesc_2_7::PanicHandler*, xercesc_2_7::MemoryManager*, bool) (in /usr/lib/libxerces-c.so.27.0) ==27740== by 0x47F6F48: GMLReader::SetupParser() (gmlreader.cpp:148) ==27740== by 0x47F75E8: GMLReader::NextFeature() (gmlreader.cpp:246) ==27740== by 0x48A3F6A: OGRGMLLayer::GetNextFeature() (ogrgmllayer.cpp:129) ==27740== by 0x48B74AD: OGR_L_GetNextFeature (ogrlayer.cpp:394) ==27740== by 0x650FABE: _wrap_Layer_GetNextFeature (ogr_wrap.cpp:3006) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== ==27740== ==27740== 1,952 bytes in 2 blocks are possibly lost in loss record 181 of 205 ==27740== at 0x4022862: realloc (vg_replace_malloc.c:306) ==27740== by 0x47AB619: VSIRealloc (cpl_vsisimple.cpp:290) ==27740== by 0x4798C6D: CPLRealloc (cpl_conv.cpp:186) ==27740== by 0x4967116: _GrowBuffer(int, char**, int*) (ogr2gmlgeometry.cpp:102) ==27740== by 0x4967175: AppendString(char**, int*, int*, char const*) (ogr2gmlgeometry.cpp:115) ==27740== by 0x4967DFC: OGR2GMLGeometryAppend(OGRGeometry*, char**, int*, int*, int) (ogr2gmlgeometry.cpp:361) ==27740== by 0x49682E5: OGR_G_ExportToGML (ogr2gmlgeometry.cpp:542) ==27740== by 0x6518692: _wrap_Geometry_ExportToGML (ogr_wrap.cpp:3382) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== ==27740== ==27740== 5,933 bytes in 7 blocks are definitely lost in loss record 191 of 205 ==27740== at 0x4022765: malloc (vg_replace_malloc.c:149) ==27740== by 0x809450A: PyString_FromString (in /usr/bin/python2.5) ==27740== by 0x4431639: _wrap_MajorObject_GetMetadata_Dict (gdal_wrap.cpp:4479) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80C9314: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80C9314: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== ==27740== ==27740== 13,276 bytes in 22 blocks are definitely lost in loss record 195 of 205 ==27740== at 0x4022862: realloc (vg_replace_malloc.c:306) ==27740== by 0x47AB619: VSIRealloc (cpl_vsisimple.cpp:290) ==27740== by 0x4798C6D: CPLRealloc (cpl_conv.cpp:186) ==27740== by 0x4967116: _GrowBuffer(int, char**, int*) (ogr2gmlgeometry.cpp:102) ==27740== by 0x4967175: AppendString(char**, int*, int*, char const*) (ogr2gmlgeometry.cpp:115) ==27740== by 0x4967B70: OGR2GMLGeometryAppend(OGRGeometry*, char**, int*, int*, int) (ogr2gmlgeometry.cpp:302) ==27740== by 0x49682E5: OGR_G_ExportToGML (ogr2gmlgeometry.cpp:542) ==27740== by 0x6518692: _wrap_Geometry_ExportToGML (ogr_wrap.cpp:3382) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C709E: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== ==27740== ==27740== 28,594 bytes in 36 blocks are possibly lost in loss record 196 of 205 ==27740== at 0x4022765: malloc (vg_replace_malloc.c:149) ==27740== by 0x80925AA: PyString_FromStringAndSize (in /usr/bin/python2.5) ==27740== by 0x8092EC4: (within /usr/bin/python2.5) ==27740== by 0x80C8EEB: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80C85D8: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== by 0x80CA114: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x80CA186: PyEval_EvalCode (in /usr/bin/python2.5) ==27740== by 0x80DE9AB: PyImport_ExecCodeModuleEx (in /usr/bin/python2.5) ==27740== by 0x80DF305: (within /usr/bin/python2.5) ==27740== by 0x80DF98A: (within /usr/bin/python2.5) ==27740== by 0x80DFE3D: (within /usr/bin/python2.5) ==27740== ==27740== ==27740== 76,656 bytes in 221 blocks are possibly lost in loss record 199 of 205 ==27740== at 0x4022765: malloc (vg_replace_malloc.c:149) ==27740== by 0x80F3E20: _PyObject_GC_NewVar (in /usr/bin/python2.5) ==27740== by 0x8111A7F: PyFrame_New (in /usr/bin/python2.5) ==27740== by 0x80C9A08: PyEval_EvalCodeEx (in /usr/bin/python2.5) ==27740== by 0x81123E0: (within /usr/bin/python2.5) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x8062B43: (within /usr/bin/python2.5) ==27740== by 0x805C9E6: PyObject_Call (in /usr/bin/python2.5) ==27740== by 0x80C232B: PyEval_CallObjectWithKeywords (in /usr/bin/python2.5) ==27740== by 0x80A496D: (within /usr/bin/python2.5) ==27740== by 0x809BDEB: (within /usr/bin/python2.5) ==27740== by 0x80C3CBA: PyEval_EvalFrameEx (in /usr/bin/python2.5) ==27740== ==27740== LEAK SUMMARY: ==27740== definitely lost: 20,990 bytes in 76 blocks. ==27740== indirectly lost: 2,449 bytes in 69 blocks. ==27740== possibly lost: 110,315 bytes in 420 blocks. ==27740== still reachable: 4,932,811 bytes in 6,144 blocks. ==27740== suppressed: 0 bytes in 0 blocks. ==27740== Reachable blocks (those to which a pointer was found) are not shown. ==27740== To see them, rerun with: --leak-check=full --show-reachable=yes