aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libparc/parc/security/parc_Pkcs12KeyStore.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libparc/parc/security/parc_Pkcs12KeyStore.c b/libparc/parc/security/parc_Pkcs12KeyStore.c
index 55e5e9b5..68ea40b9 100644
--- a/libparc/parc/security/parc_Pkcs12KeyStore.c
+++ b/libparc/parc/security/parc_Pkcs12KeyStore.c
@@ -267,7 +267,9 @@ parcPkcs12KeyStore_CreateFile(
} else {
parcTrapUnrecoverableState("Cannot fdopen(3) the file descriptor %d", fd);
}
+#ifndef _WIN32
close(fd);
+#endif
} else {
parcTrapUnrecoverableState("Cannot open(2) the file '%s': %s", filename, strerror(errno));
}