Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
systemd-mini.1472
0001-activate-fix-fd-leak-in-do_accept.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-activate-fix-fd-leak-in-do_accept.patch of Package systemd-mini.1472
From aa44499da15a8fa7026463555a7a27e55e4e24a8 Mon Sep 17 00:00:00 2001 From: Philippe De Swert <philippedeswert@gmail.com> Date: Wed, 10 Sep 2014 22:14:41 +0300 Subject: [PATCH] activate: fix fd leak in do_accept() Found with Coverity. --- src/activate/activate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git src/activate/activate.c src/activate/activate.c index 8942773..0a1df37 100644 --- src/activate/activate.c +++ src/activate/activate.c @@ -242,7 +242,7 @@ static int launch1(const char* child, char** argv, char **env, int fd) { static int do_accept(const char* name, char **argv, char **envp, int fd) { _cleanup_free_ char *local = NULL, *peer = NULL; - int fd2; + _cleanup_close_ int fd2 = -1; fd2 = accept(fd, NULL, NULL); if (fd2 < 0) { -- 1.7.9.2
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