diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1996-12-31 06:58:27 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1996-12-31 06:58:27 +0000 |
commit | 7266928e77c30b6cb0a0e9dd5f53cea4d6d590c1 (patch) | |
tree | 714cacc13eec32a70604719c15c347b4c1ec1e17 | |
parent | ae753b86b58a9c7d9d88ef1c0270bdf01aa16cb0 (diff) | |
download | postgresql-7266928e77c30b6cb0a0e9dd5f53cea4d6d590c1.tar.gz postgresql-7266928e77c30b6cb0a0e9dd5f53cea4d6d590c1.zip |
Fixed realloc for increasing tempRels list.
-rw-r--r-- | src/backend/catalog/heap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index 55afd489450..65c48c33365 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.8 1996/11/10 02:59:25 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.9 1996/12/31 06:58:27 vadim Exp $ * * INTERFACE ROUTINES * heap_creatr() - Create an uncataloged heap relation @@ -1392,7 +1392,8 @@ AddToTempRelList(Relation r) if (tempRels->num == tempRels->size) { tempRels->size += TEMP_REL_LIST_SIZE; - tempRels->rels = realloc(tempRels->rels, tempRels->size); + tempRels->rels = realloc(tempRels->rels, + sizeof(Relation) * tempRels->size); } tempRels->rels[tempRels->num] = r; tempRels->num++; |