- fixed some memory leaks in sc_establish_context

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@388 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
jey 2002-03-24 22:54:41 +00:00
parent cd4e3650a4
commit c730a4dab7
1 changed files with 2 additions and 0 deletions

View File

@ -315,6 +315,8 @@ int sc_establish_context(struct sc_context **ctx_out, const char *app_name)
#endif
load_reader_drivers(ctx, &opts);
load_card_drivers(ctx, &opts);
del_drvs(&opts, 0);
del_drvs(&opts, 1);
*ctx_out = ctx;
return 0;