Projects
Mega:23.03
libxml2
_service:tar_scm:Fix-memory-leaks-in-xmlACatalo...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:Fix-memory-leaks-in-xmlACatalogAdd-when-xmlHashAddEntry-failed.patch of Package libxml2
From 43555b3ff9c28a44aa27f447475b9f9cfccbe702 Mon Sep 17 00:00:00 2001 From: xiezhipeng <xiezhipeng1@huawei.com> Date: Fri, 24 Jun 2022 09:39:54 +0800 Subject: [PATCH] fix memory leaks in xmlACatalogAdd --- catalog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/catalog.c b/catalog.c index effbb2e..866e753 100644 --- a/catalog.c +++ b/catalog.c @@ -2981,6 +2981,8 @@ xmlACatalogAdd(xmlCatalogPtr catal, const xmlChar * type, if (catal->sgml == NULL) catal->sgml = xmlHashCreate(10); res = xmlHashAddEntry(catal->sgml, orig, entry); + if (res) + xmlFreeCatalogEntry(entry, NULL); } } return (res); -- 1.8.3.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2