diff options
author | Michael Meskes <meskes@postgresql.org> | 2000-09-20 13:25:52 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2000-09-20 13:25:52 +0000 |
commit | 339a5bbfb17ecd171ebe076c5bf016c4e66e2c0a (patch) | |
tree | 38eaaf78de93e0d5b7e729bb52f2301c472dfd83 /src/interfaces/ecpg/lib/descriptor.c | |
parent | 95563e7bbf597bb69a273d7cfbe664f1796391b6 (diff) | |
download | postgresql-339a5bbfb17ecd171ebe076c5bf016c4e66e2c0a.tar.gz postgresql-339a5bbfb17ecd171ebe076c5bf016c4e66e2c0a.zip |
*** empty log message ***
Diffstat (limited to 'src/interfaces/ecpg/lib/descriptor.c')
-rw-r--r-- | src/interfaces/ecpg/lib/descriptor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/lib/descriptor.c b/src/interfaces/ecpg/lib/descriptor.c index 37423255336..3363381d90c 100644 --- a/src/interfaces/ecpg/lib/descriptor.c +++ b/src/interfaces/ecpg/lib/descriptor.c @@ -302,10 +302,10 @@ ECPGdeallocate_desc(int line, const char *name) bool ECPGallocate_desc(int line, const char *name) { - struct descriptor *new = (struct descriptor *) malloc(sizeof(struct descriptor)); + struct descriptor *new = (struct descriptor *) ecpg_alloc(sizeof(struct descriptor), line); new->next = all_descriptors; - new->name = malloc(strlen(name) + 1); + new->name = ecpg_alloc(strlen(name) + 1, line); new->result = PQmakeEmptyPGresult(NULL, 0); strcpy(new->name, name); all_descriptors = new; |