mirror of
https://github.com/DBD-SQLite/DBD-SQLite
synced 2025-06-07 14:19:10 -04:00
fixed leaks
This commit is contained in:
parent
c6950aa49b
commit
081566e6c2
1 changed files with 3 additions and 2 deletions
5
dbdimp.c
5
dbdimp.c
|
@ -1427,13 +1427,14 @@ sqlite_db_enable_load_extension(pTHX_ SV *dbh, int onoff)
|
|||
|
||||
#endif
|
||||
|
||||
HV* sqlite_db_table_column_metadata(pTHX_ SV *dbh, SV *dbname, SV *tablename, SV *columnname)
|
||||
HV*
|
||||
sqlite_db_table_column_metadata(pTHX_ SV *dbh, SV *dbname, SV *tablename, SV *columnname)
|
||||
{
|
||||
D_imp_dbh(dbh);
|
||||
const char *datatype, *collseq;
|
||||
int notnull, primary, autoinc;
|
||||
int rc;
|
||||
HV *metadata = newHV();
|
||||
HV *metadata = (HV*)sv_2mortal((SV*)newHV());
|
||||
|
||||
/* dbname may be NULL but (table|column)name may not be NULL */
|
||||
if (!tablename || !SvPOK(tablename)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue