1
0
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:
David King
2021-07-14 17:03:46 +01:00
committed by Nick Wellnhofer
parent 477f6de394
commit d7f11fd066

View File

@@ -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);
} }
} }