mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
fixing bug 118559
This commit is contained in:
10
xmlIO.c
10
xmlIO.c
@ -720,20 +720,24 @@ append_reverse_ulong( xmlZMemBuff * buff, unsigned long data ) {
|
||||
*/
|
||||
static void
|
||||
xmlFreeZMemBuff( xmlZMemBuffPtr buff ) {
|
||||
|
||||
|
||||
#ifdef DEBUG_HTTP
|
||||
int z_err;
|
||||
#endif
|
||||
|
||||
if ( buff == NULL )
|
||||
return;
|
||||
|
||||
xmlFree( buff->zbuff );
|
||||
z_err = deflateEnd( &buff->zctrl );
|
||||
#ifdef DEBUG_HTTP
|
||||
z_err = deflateEnd( &buff->zctrl );
|
||||
if ( z_err != Z_OK )
|
||||
xmlGenericError( xmlGenericErrorContext,
|
||||
"xmlFreeZMemBuff: Error releasing zlib context: %d\n",
|
||||
z_err );
|
||||
#endif
|
||||
#else
|
||||
deflateEnd( &buff->zctrl );
|
||||
#endif;
|
||||
|
||||
xmlFree( buff );
|
||||
return;
|
||||
|
Reference in New Issue
Block a user