commit 3c9d2d5948c51dc48e21bf8309caadb2f21c1ac0
parent 5fe9512828249d659a08421c3e6dac19e7099782
Author: Joris Vink <joris@coders.se>
Date: Mon, 16 May 2016 09:25:37 +0200
missing va_end() in kore_pgsql_query_params().
from @fahlgren.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/pgsql.c b/src/pgsql.c
@@ -208,6 +208,9 @@ kore_pgsql_query_params(struct kore_pgsql *pgsql,
ret = KORE_RESULT_OK;
cleanup:
+ if (count > 0)
+ va_end(args);
+
kore_mem_free(values);
kore_mem_free(lengths);
kore_mem_free(formats);