mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-24 13:33:01 +03:00
Fix leak in __xmlOutputBufferCreateFilename
Found by Coverity. https://bugzilla.redhat.com/show_bug.cgi?id=1938806
This commit is contained in:
committed by
Nick Wellnhofer
parent
477f6de394
commit
d7f11fd066
2
xmlIO.c
2
xmlIO.c
@@ -2735,6 +2735,8 @@ __xmlOutputBufferCreateFilename(const char *URI,
|
|||||||
ret->writecallback = xmlGzfileWrite;
|
ret->writecallback = xmlGzfileWrite;
|
||||||
ret->closecallback = xmlGzfileClose;
|
ret->closecallback = xmlGzfileClose;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
xmlGzfileClose(context);
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user