|
@@ -846,6 +846,8 @@ SHPCreateLL( const char * pszLayer, int nShapeType, SAHooks *psHooks )
|
|
if( fpSHP == NULL )
|
|
if( fpSHP == NULL )
|
|
{
|
|
{
|
|
psHooks->Error( "Failed to create file .shp file." );
|
|
psHooks->Error( "Failed to create file .shp file." );
|
|
|
|
+ free( pszFullname );
|
|
|
|
+ free( pszBasename );
|
|
return( NULL );
|
|
return( NULL );
|
|
}
|
|
}
|
|
|
|
|
|
@@ -854,6 +856,8 @@ SHPCreateLL( const char * pszLayer, int nShapeType, SAHooks *psHooks )
|
|
if( fpSHX == NULL )
|
|
if( fpSHX == NULL )
|
|
{
|
|
{
|
|
psHooks->Error( "Failed to create file .shx file." );
|
|
psHooks->Error( "Failed to create file .shx file." );
|
|
|
|
+ free( pszFullname );
|
|
|
|
+ free( pszBasename );
|
|
return( NULL );
|
|
return( NULL );
|
|
}
|
|
}
|
|
|
|
|