don't close stdout/stderr

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2005 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2004-12-13 09:48:54 +00:00
parent 71441cd6a5
commit f2157e90ba
1 changed files with 2 additions and 2 deletions

View File

@ -621,9 +621,9 @@ int sc_release_context(struct sc_context *ctx)
if (drv->dll)
scdl_close(drv->dll);
}
if (ctx->debug_file)
if (ctx->debug_file && ctx->debug_file != stdout)
fclose(ctx->debug_file);
if (ctx->error_file)
if (ctx->error_file && ctx->error_file != stderr)
fclose(ctx->error_file);
if (ctx->preferred_language)
free(ctx->preferred_language);