Projects
openEuler:Mainline
libassuan
_service:tar_scm:backport-tests-Avoid-leaking-f...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:backport-tests-Avoid-leaking-file-descriptors-on-errors.patch of Package libassuan
From 70b465e0bf65c9ac6d1f7e242d2b76a84afaac6a Mon Sep 17 00:00:00 2001 From: Jakub Jelen <jjelen@redhat.com> Date: Wed, 7 Apr 2021 12:09:59 +0200 Subject: [PATCH] tests: Avoid leaking file descriptors on errors * tests/fdpassing.c (client): Close fp on error -- Signed-off-by: Jakub Jelen <jjelen@redhat.com> Conflict: NA Reference: https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libassuan.git;a=commit;h=70b465e0bf65c9ac6d1f7e242d2b76a84afaac6a --- tests/fdpassing.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/fdpassing.c b/tests/fdpassing.c index 3e1b71b..0e23ffc 100644 --- a/tests/fdpassing.c +++ b/tests/fdpassing.c @@ -176,6 +176,7 @@ client (assuan_context_t ctx, const char *fname) rc = assuan_sendfd (ctx, fileno (fp)); if (rc) { + fclose (fp); log_error ("assuan_sendfd failed: %s\n", gpg_strerror (rc)); return -1; } -- 2.11.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