Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP1:Update
device-mapper
bug-1150021_03-cov-Fix-a-leak.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bug-1150021_03-cov-Fix-a-leak.patch of Package device-mapper
From 36523a398d50381f8355e719b98c3ce584b81a23 Mon Sep 17 00:00:00 2001 From: Marian Csontos <mcsontos@redhat.com> Date: Tue, 27 Aug 2019 12:21:41 +0200 Subject: [PATCH] cov: Fix a leak --- lib/device/bcache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/device/bcache.c b/lib/device/bcache.c index a250bfd..d487ca2 100644 --- a/lib/device/bcache.c +++ b/lib/device/bcache.c @@ -516,6 +516,7 @@ static bool _sync_issue(struct io_engine *ioe, enum dir d, int fd, (unsigned long long)limit_nbytes, (unsigned long long)extra_nbytes, (unsigned long long)_last_byte_sector_size); + free(io); return false; } } @@ -547,8 +548,8 @@ static bool _sync_issue(struct io_engine *ioe, enum dir d, int fd, log_debug("Device write error %d offset %llu len %llu", errno, (unsigned long long)(where + pos), (unsigned long long)(len - pos)); - free(io); - return false; + free(io); + return false; } pos += rv; } -- 1.8.3.1
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