Fix memory leak when attaching a database

This commit is contained in:
Martin Kleusberg
2018-09-27 21:41:40 +02:00
parent 717ff075b5
commit 07b1d7ba00

View File

@@ -205,6 +205,7 @@ bool DBBrowserDB::attach(const QString& filePath, QString attach_as)
return false;
}
}
sqlite3_finalize(db_vm);
}
// Ask for name to be given to the attached database if none was provided