diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbeaux.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c index cba9c096d..26f829f07 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -857,9 +857,10 @@ static void Cleanup(Vdbe *p){ void sqlite3VdbeSetNumCols(Vdbe *p, int nResColumn){ Mem *pColName; int n; - assert( 0==p->nResColumn ); - p->nResColumn = nResColumn; + releaseMemArray(p->aColName, p->nResColumn*2); + sqliteFree(p->aColName); n = nResColumn*2; + p->nResColumn = nResColumn; p->aColName = pColName = (Mem*)sqliteMalloc( sizeof(Mem)*n ); if( p->aColName==0 ) return; while( n-- > 0 ){ |