Changeset 13449

Show
Ignore:
Timestamp:
12/25/07 12:25:25 (5 months ago)
Author:
mloskot
Message:

Fixed memory leaks in OCI driver reported by Linda Thompson (Ticket #2120).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/ogr/ogrsf_frmts/oci/ogrocidatasource.cpp

    r12355 r13449  
    213213    } 
    214214 
     215    CSLDestroy( papszTableList ); 
     216 
    215217    return TRUE; 
    216218} 
  • trunk/gdal/ogr/ogrsf_frmts/oci/ogrocisession.cpp

    r10645 r13449  
    7070    hGeometryTDO = NULL; 
    7171    hOrdinatesTDO = NULL; 
     72    pszUserid = NULL; 
     73    pszPassword = NULL; 
     74    pszDatabase = NULL; 
    7275} 
    7376 
     
    8487    if( hSvcCtx != NULL ) 
    8588        OCILogoff( hSvcCtx, hError ); 
     89 
     90    CPLFree( pszUserid ); 
     91    CPLFree( pszPassword ); 
     92    CPLFree( pszDatabase ); 
    8693} 
    8794