fixed bugs due to new version of opensc

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@517 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
frankmorgner
2011-09-02 13:48:17 +00:00
parent a0cc017ae6
commit 59b8a9b0da
3 changed files with 16 additions and 3 deletions

View File

@@ -1524,6 +1524,8 @@ special:
if (verbose > 1)
fprintf(stderr, "control loop: writing %d bytes... ", result);
result = write (fd, outbuf, result);
/* TODO outbuf should also be freed on error */
free(outbuf);
if (result < 0)
goto stall;
if (verbose > 1)