Projects
openEuler:24.03:SP1:Everything:64G
popt
_service:tar_scm:revert-fix-memory-leak-regress...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:revert-fix-memory-leak-regressions-in-popt.patch of Package popt
From 3258b29e47ec0113048070f72a63a14b6e6437eb Mon Sep 17 00:00:00 2001 From: Jiayi Chen <1398871225@qq.com> Date: Tue, 13 Dec 2022 16:09:46 +0800 Subject: [PATCH] revert: fix memory leak regressions in popt Revert a previous patch in commit 7219e1ddc1e8606dda18c1105df0d45d8e8e0e09, which will cause some problems. This patch is automatically introduced by updating version to 1.19. https://gitee.com/src-openeuler/popt/issues/I5PL76 --- src/popt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/popt.c b/src/popt.c index 5710f80..9908ba4 100644 --- a/src/popt.c +++ b/src/popt.c @@ -216,9 +216,6 @@ void poptResetContext(poptContext con) else con->os->next = 0; - for (i = 0; i < con->numLeftovers; i++) { - con->leftovers[i] = _free(con->leftovers[i]); - } con->numLeftovers = 0; con->nextLeftover = 0; con->restLeftover = 0; @@ -1537,7 +1534,7 @@ poptContext poptFreeContext(poptContext con) con->numExecs = 0; for (i = 0; i < con->numLeftovers; i++) { - con->leftovers[i] = _free(con->leftovers[i]); + con->leftovers[i] = _free(&con->leftovers[i]); } con->leftovers = _free(con->leftovers); -- 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