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:
parent
71441cd6a5
commit
f2157e90ba
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user