Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
lvm2.14215
bug-1164718_15-cov-release-iterator-on-error-pa...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-1164718_15-cov-release-iterator-on-error-path.patch of Package lvm2.14215
From 09aafb61e31c3781530795057c87afaeb53a2bd4 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac <zkabelac@redhat.com> Date: Tue, 25 Jun 2019 15:37:01 +0200 Subject: [PATCH] cov: release iterator on error path --- lib/label/label.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/label/label.c b/lib/label/label.c index 4f8e1354f..9a3f8df67 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -866,8 +866,11 @@ int label_scan(struct cmd_context *cmd) } while ((dev = dev_iter_get(iter))) { - if (!(devl = dm_zalloc(sizeof(*devl)))) + if (!(devl = dm_zalloc(sizeof(*devl)))) { + log_error("Failed to allocated device list."); + dev_iter_destroy(iter); return 0; + } devl->dev = dev; dm_list_add(&all_devs, &devl->list); -- 2.24.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor