aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2003-06-14 12:04:07 +0000
committerdrh <drh@noemail.net>2003-06-14 12:04:07 +0000
commitc45d95f9dee5af5885acebc58bfde880df9801a7 (patch)
tree062b1db32bc12981f765c7dc799db8f4fcd8b1ec /src
parente2227f0092c6096cb4734a1b42a2ac6b9b190e8c (diff)
downloadsqlite-c45d95f9dee5af5885acebc58bfde880df9801a7.tar.gz
sqlite-c45d95f9dee5af5885acebc58bfde880df9801a7.zip
Bug fix: sqliteFree() called twice on the same allocation during error
handling in attach.c. (CVS 1020) FossilOrigin-Name: 9ec40935b9435ddc3749cab517387477e4045f6b
Diffstat (limited to 'src')
-rw-r--r--src/attach.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/attach.c b/src/attach.c
index e2d4de230..f9f0b47f0 100644
--- a/src/attach.c
+++ b/src/attach.c
@@ -11,7 +11,7 @@
*************************************************************************
** This file contains code used to implement the ATTACH and DETACH commands.
**
-** $Id: attach.c,v 1.6 2003/06/06 19:00:42 drh Exp $
+** $Id: attach.c,v 1.7 2003/06/14 12:04:08 drh Exp $
*/
#include "sqliteInt.h"
@@ -64,7 +64,6 @@ void sqliteAttach(Parse *pParse, Token *pFilename, Token *pDbname){
sqliteErrorMsg(pParse, "database %z is already in use", zName);
pParse->rc = SQLITE_ERROR;
sqliteFree(zFile);
- sqliteFree(zName);
return;
}
}