mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Fix a memory leak in the Rename method of the echo test virtual table.
No changes to the core. (CVS 4166) FossilOrigin-Name: e5c132fff3e8a0478622527a7e47d679594f899a
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
** is not included in the SQLite library. It is used for automated
|
||||
** testing of the SQLite library.
|
||||
**
|
||||
** $Id: test8.c,v 1.47 2007/06/27 15:53:35 danielk1977 Exp $
|
||||
** $Id: test8.c,v 1.48 2007/07/20 00:35:59 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "tcl.h"
|
||||
@@ -1041,6 +1041,7 @@ static int echoRename(sqlite3_vtab *vtab, const char *zNewName){
|
||||
p->zTableName, zNewName, &p->zTableName[nThis]
|
||||
);
|
||||
rc = sqlite3_exec(p->db, zSql, 0, 0, 0);
|
||||
sqliteFree(zSql);
|
||||
}
|
||||
|
||||
return rc;
|
||||
|
Reference in New Issue
Block a user