From 05f0480fcf0ae68552ae3a670330a850898278f6 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 8 Oct 2017 20:20:05 +0000 Subject: Fix double close in openwrite* --- src/libstddjb/openwritenclose_unsafe.c | 1 - src/libstddjb/openwritevnclose_unsafe.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/libstddjb/openwritenclose_unsafe.c b/src/libstddjb/openwritenclose_unsafe.c index e5ac260..7969e4f 100644 --- a/src/libstddjb/openwritenclose_unsafe.c +++ b/src/libstddjb/openwritenclose_unsafe.c @@ -16,6 +16,5 @@ int openwritenclose_unsafe_internal (char const *fn, char const *s, size_t len, errno = e ; return 0 ; } - fd_close(fd) ; return 1 ; } diff --git a/src/libstddjb/openwritevnclose_unsafe.c b/src/libstddjb/openwritevnclose_unsafe.c index ddcbfd3..f3e6a6a 100644 --- a/src/libstddjb/openwritevnclose_unsafe.c +++ b/src/libstddjb/openwritevnclose_unsafe.c @@ -18,6 +18,5 @@ int openwritevnclose_unsafe_internal (char const *fn, struct iovec const *v, uns errno = e ; return 0 ; } - fd_close(fd) ; return 1 ; } -- cgit v1.2.3