1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

The prior fix of ticket #360 was incorrect and caused a memory leak. This

check-in plugs the memory leak and correctly fixes ticket #360. (CVS 1040)

FossilOrigin-Name: fc490f677b89e623b41f9e7f5f3bade9b981562c
This commit is contained in:
drh
2003-06-29 20:25:08 +00:00
parent d6ae597393
commit dc339ee29c
5 changed files with 47 additions and 11 deletions

View File

@ -36,7 +36,7 @@
** in this file for details. If in doubt, do not deviate from existing
** commenting and indentation practices when changing or adding code.
**
** $Id: vdbe.c,v 1.230 2003/06/24 10:39:46 drh Exp $
** $Id: vdbe.c,v 1.231 2003/06/29 20:25:08 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@ -979,7 +979,8 @@ static int hardDeephem(Vdbe *p, int i){
if( z==0 ) return 1;
memcpy(z, *pzStack, pStack->n);
*pzStack = z;
pStack->flags &= !STK_Ephem;
pStack->flags &= ~STK_Ephem;
pStack->flags |= STK_Dyn;
return 0;
}