1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +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:
drh
2007-07-20 00:35:58 +00:00
parent b100391318
commit a693bcde02
3 changed files with 9 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
C Cleanup\sunused\sfunction\sin\spager.c.\s\sThis\sis\sthe\sconclusion\sof\sthe\sfix\r\nto\sticket\s#2518.\sWe\sbelieve\sthe\sfix\sis\scomplete\sand\scorrect.\s(CVS\s4165) C Fix\sa\smemory\sleak\sin\sthe\sRename\smethod\sof\sthe\secho\stest\svirtual\stable.\nNo\schanges\sto\sthe\score.\s(CVS\s4166)
D 2007-07-20T00:33:36 D 2007-07-20T00:35:59
F Makefile.in 0c0e53720f658c7a551046442dd7afba0b72bfbe F Makefile.in 0c0e53720f658c7a551046442dd7afba0b72bfbe
F Makefile.linux-gcc 65241babba6faf1152bf86574477baab19190499 F Makefile.linux-gcc 65241babba6faf1152bf86574477baab19190499
F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028 F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028
@@ -120,7 +120,7 @@ F src/test4.c 8b784cd82de158a2317cb4ac4bc86f91ad315e25
F src/test5.c c40a4cf43266c1c6da7bcb737d294304a177e6cc F src/test5.c c40a4cf43266c1c6da7bcb737d294304a177e6cc
F src/test6.c 5957d249d437e4db74045ce2f1f661648d94bf94 F src/test6.c 5957d249d437e4db74045ce2f1f661648d94bf94
F src/test7.c 03fa8d787f6aebc6d1f72504d52f33013ad2c8e3 F src/test7.c 03fa8d787f6aebc6d1f72504d52f33013ad2c8e3
F src/test8.c 4f0a8624028588e083731c11927f5b2a07184618 F src/test8.c 27a61c60f736066646a9e9ca21acdfdf0f3ea11e
F src/test9.c c0f38f7795cc51d37db6c63874d90f40f10d0f0e F src/test9.c c0f38f7795cc51d37db6c63874d90f40f10d0f0e
F src/test_async.c 9d326ceda4306bcab252b8f7e8e480ed45d7ccb6 F src/test_async.c 9d326ceda4306bcab252b8f7e8e480ed45d7ccb6
F src/test_autoext.c 855157d97aa28cf84233847548bfacda21807436 F src/test_autoext.c 855157d97aa28cf84233847548bfacda21807436
@@ -518,7 +518,7 @@ F www/tclsqlite.tcl 8be95ee6dba05eabcd27a9d91331c803f2ce2130
F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0
F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b F www/version3.tcl 890248cf7b70e60c383b0e84d77d5132b3ead42b
F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5 F www/whentouse.tcl fc46eae081251c3c181bd79c5faef8195d7991a5
P cbc56fd4ec60d08a13a3aa181d044e726c49ef3c P 31dba1e933c523a47fdd007c2c7492133dfe72f2
R 50eec5fb77fce5bbf8eeff15756e0201 R b2601e6b4eaef4d5b493d2c539184a6c
U drh U drh
Z 34289d7bcf73b986a79d68c15ee2a407 Z 797882072b5d946c657e34a757eff53d

View File

@@ -1 +1 @@
31dba1e933c523a47fdd007c2c7492133dfe72f2 e5c132fff3e8a0478622527a7e47d679594f899a

View File

@@ -13,7 +13,7 @@
** is not included in the SQLite library. It is used for automated ** is not included in the SQLite library. It is used for automated
** testing of the SQLite library. ** 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 "sqliteInt.h"
#include "tcl.h" #include "tcl.h"
@@ -1041,6 +1041,7 @@ static int echoRename(sqlite3_vtab *vtab, const char *zNewName){
p->zTableName, zNewName, &p->zTableName[nThis] p->zTableName, zNewName, &p->zTableName[nThis]
); );
rc = sqlite3_exec(p->db, zSql, 0, 0, 0); rc = sqlite3_exec(p->db, zSql, 0, 0, 0);
sqliteFree(zSql);
} }
return rc; return rc;