From 8768b4611d3268d6fca7fc214ce0a5c7ec7fc332 Mon Sep 17 00:00:00 2001 From: Pankaj Date: Mon, 1 Jun 2015 22:04:22 +0200 Subject: trust: Fix double close() --- trust/save.c | 1 - 1 file changed, 1 deletion(-) (limited to 'trust') diff --git a/trust/save.c b/trust/save.c index 6533bd1..b7ab21e 100644 --- a/trust/save.c +++ b/trust/save.c @@ -233,7 +233,6 @@ p11_save_finish_file (p11_save_file *file, /* Set the mode of the file, readable by everyone, but not writable */ } else if (chmod (file->temp, S_IRUSR | S_IRGRP | S_IROTH) < 0) { p11_message_err (errno, "couldn't set file permissions: %s", file->temp); - close (file->fd); ret = false; /* Atomically rename the tempfile over the filename */ -- cgit v1.1