Browse Source

database: don't leak query string.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 7 years ago
committed by Christian Decker
parent
commit
9747d1a62c
  1. 1
      wallet/db.c

1
wallet/db.c

@ -223,6 +223,7 @@ sqlite3_stmt *PRINTF_FMT(3, 4)
/* Sets stmt to NULL if not SQLITE_OK */ /* Sets stmt to NULL if not SQLITE_OK */
sqlite3_prepare_v2(db->sql, query, -1, &stmt, NULL); sqlite3_prepare_v2(db->sql, query, -1, &stmt, NULL);
tal_free(query);
return stmt; return stmt;
} }

Loading…
Cancel
Save