Properly cleanup varargs in enumerators of both SQL backends
This commit is contained in:
@@ -472,6 +472,7 @@ static bool mysql_enumerator_enumerate(mysql_enumerator_t *this, ...)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
va_end(args);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -206,6 +206,7 @@ static bool sqlite_enumerator_enumerate(sqlite_enumerator_t *this, ...)
|
|||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
DBG1(DBG_LIB, "invalid result type supplied");
|
DBG1(DBG_LIB, "invalid result type supplied");
|
||||||
|
va_end(args);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user