The SmartcardExit function frees buffers that were allocated during a call to SmartcardInitialize (VxD).
VOID 
SmartcardExit(
  IN PSMARTCARD_EXTENSION SmartcardExtension
);
 The library allocates internal buffers during a call to SmartcardInitialize (VxD). SmartcardExit frees these buffers.
SmartcardExit functions the same for WDM and VxD drivers.