projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15ac6ec
)
Fixed memory leak in ecpglib by adding some missing free() commands.
author
Michael Meskes
<
[email protected]
>
Thu, 2 Jun 2005 12:50:30 +0000
(12:50 +0000)
committer
Michael Meskes
<
[email protected]
>
Thu, 2 Jun 2005 12:50:30 +0000
(12:50 +0000)
src/interfaces/ecpg/ecpglib/execute.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/ecpglib/execute.c
b/src/interfaces/ecpg/ecpglib/execute.c
index 3068b5be7e489a98978f3573a0762f88680558c9..549b2aa3214563096d46b3914e5da4e9d45b44ca 100644
(file)
--- a/
src/interfaces/ecpg/ecpglib/execute.c
+++ b/
src/interfaces/ecpg/ecpglib/execute.c
@@
-66,6
+66,7
@@
quote_postgres(char *arg, int lineno)
res[ri++] = '\'';
res[ri] = '\0';
+ ECPGfree(arg);
return res;
}
@@
-799,8
+800,6
@@
ECPGstore_input(const struct statement * stmt, const struct variable * var,
if (!mallocedval)
return false;
- ECPGfree(newcopy);
-
*tobeinserted_p = mallocedval;
*malloced_p = true;
}
@@
-835,8
+834,6
@@
ECPGstore_input(const struct statement * stmt, const struct variable * var,
if (!mallocedval)
return false;
- ECPGfree(newcopy);
-
*tobeinserted_p = mallocedval;
*malloced_p = true;
}