Projects
Mega:24.09
lvm2
_service:tar_scm:0019-fix-memleak-in-vgchange.p...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0019-fix-memleak-in-vgchange.patch of Package lvm2
From 7ec97ed5f2b95585eb1538ee6edeedb7275101eb Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac <zkabelac@redhat.com> Date: Wed, 12 Jul 2023 14:15:41 +0200 Subject: [PATCH] cov: fix memleak in vgchange Release allocated vgname from get_single_vgname_cmd_arg() when it is not returned via *vgname_ret. --- tools/vgchange.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/vgchange.c b/tools/vgchange.c index 63861b5..7a53a7f 100644 --- a/tools/vgchange.c +++ b/tools/vgchange.c @@ -863,6 +863,8 @@ static int _vgchange_autoactivation_setup(struct cmd_context *cmd, *flags &= ~READ_WITHOUT_LOCK; cmd->can_use_one_scan = 0; } + + free(vgname); return 1; } -- 2.27.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