- 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:
parent
cd4e3650a4
commit
c730a4dab7
|
@ -315,6 +315,8 @@ int sc_establish_context(struct sc_context **ctx_out, const char *app_name)
|
||||||
#endif
|
#endif
|
||||||
load_reader_drivers(ctx, &opts);
|
load_reader_drivers(ctx, &opts);
|
||||||
load_card_drivers(ctx, &opts);
|
load_card_drivers(ctx, &opts);
|
||||||
|
del_drvs(&opts, 0);
|
||||||
|
del_drvs(&opts, 1);
|
||||||
|
|
||||||
*ctx_out = ctx;
|
*ctx_out = ctx;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue