Projects
openEuler:24.03:SP1:Everything
rpm
_service:tar_scm:backport-Fix-spec-parser-leaks...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-Fix-spec-parser-leaks-from-trans-f-file.patch of Package rpm
From 26a1323022e3153d99b2f1095fe040f52fb2e3f3 Mon Sep 17 00:00:00 2001 From: Panu Matilainen <pmatilai@redhat.com> Date: Tue, 30 Jan 2024 14:55:54 +0200 Subject: [PATCH] Fix spec parser leaks from %*trans -f <file> Conflict:don't free preunTransFile and postunTransFile because db46bd8bd1 is not merged The untrans-versions leak because grepping around didn't turn up the trans-counterparts ... because they didn't exist either. Those leaks are adults by now. --- build/spec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/spec.c b/build/spec.c index 824afba27..6f8a6a155 100644 --- a/build/spec.c +++ b/build/spec.c @@ -143,6 +143,8 @@ Package freePackage(Package pkg) pkg->preUnFile = _free(pkg->preUnFile); pkg->postUnFile = _free(pkg->postUnFile); pkg->verifyFile = _free(pkg->verifyFile); + pkg->preTransFile = _free(pkg->preTransFile); + pkg->postTransFile = _free(pkg->postTransFile); pkg->header = headerFree(pkg->header); pkg->ds = rpmdsFree(pkg->ds); -- 2.33.0
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