Properly cleanup varargs in enumerators of both SQL backends

This commit is contained in:
Tobias Brunner
2012-09-28 15:10:29 +02:00
parent a79af394a0
commit b5835ee530
2 changed files with 2 additions and 0 deletions
@@ -472,6 +472,7 @@ static bool mysql_enumerator_enumerate(mysql_enumerator_t *this, ...)
break;
}
}
va_end(args);
return TRUE;
}
@@ -206,6 +206,7 @@ static bool sqlite_enumerator_enumerate(sqlite_enumerator_t *this, ...)
}
default:
DBG1(DBG_LIB, "invalid result type supplied");
va_end(args);
return FALSE;
}
}