db: Fix uninitialized result cleanup
This commit is contained in:
parent
f1d86b7ec2
commit
19f05fd20b
@ -820,6 +820,7 @@ TALER_MINT_DB_reserves_in_insert (PGconn *db,
|
|||||||
PGresult *result;
|
PGresult *result;
|
||||||
int reserve_exists;
|
int reserve_exists;
|
||||||
|
|
||||||
|
result = NULL;
|
||||||
if (NULL == reserve)
|
if (NULL == reserve)
|
||||||
{
|
{
|
||||||
GNUNET_break (0);
|
GNUNET_break (0);
|
||||||
@ -860,7 +861,9 @@ TALER_MINT_DB_reserves_in_insert (PGconn *db,
|
|||||||
goto rollback;
|
goto rollback;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
PQclear (result); result = NULL;
|
if (NULL != result)
|
||||||
|
PQclear (result);
|
||||||
|
result = NULL;
|
||||||
/* create new incoming transaction */
|
/* create new incoming transaction */
|
||||||
struct TALER_DB_QueryParam params[] = {
|
struct TALER_DB_QueryParam params[] = {
|
||||||
TALER_DB_QUERY_PARAM_PTR (reserve->pub),
|
TALER_DB_QUERY_PARAM_PTR (reserve->pub),
|
||||||
|
Loading…
Reference in New Issue
Block a user