fix some v-card error handling, sr=mscott 334384

This commit is contained in:
bienvenu%nventure.com 2006-04-17 21:08:38 +00:00
parent a665b1c4b7
commit 9d31bba6bc

View File

@ -940,8 +940,10 @@ static char * lexGetDataFromBase64()
} else if ((c == ' ') || (c == '\t')) {
continue;
} else { /* error condition */
PR_FREEIF (bytes);
PR_FREEIF(oldBytes);
if (bytes)
PR_Free (bytes);
else if (oldBytes)
PR_Free (oldBytes);
/* error recovery: skip until 2 adjacent newlines. */
DBG_(("db: invalid character 0x%x '%c'\n", c,c));
if (c != EOF) {