projects
/
users
/
c2main
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a9468b
)
Added free() calls against memory leak in interval.c.
author
Michael Meskes
<
[email protected]
>
Mon, 5 Jul 2004 18:54:01 +0000
(18:54 +0000)
committer
Michael Meskes
<
[email protected]
>
Mon, 5 Jul 2004 18:54:01 +0000
(18:54 +0000)
src/interfaces/ecpg/pgtypeslib/interval.c
patch
|
blob
|
blame
|
history
diff --git
a/src/interfaces/ecpg/pgtypeslib/interval.c
b/src/interfaces/ecpg/pgtypeslib/interval.c
index c49cd0e997907e3cc821f3ddab219a728c26ddc2..e1d34e8a7b20d3591e05706066017351cba680e3 100644
(file)
--- a/
src/interfaces/ecpg/pgtypeslib/interval.c
+++ b/
src/interfaces/ecpg/pgtypeslib/interval.c
@@
-782,12
+782,14
@@
PGTYPESinterval_from_asc(char *str, char **endptr)
if (dtype != DTK_DELTA)
{
errno = PGTYPES_INTVL_BAD_INTERVAL;
+ free(result);
return NULL;
}
if (tm2interval(tm, fsec, result) != 0)
{
errno = PGTYPES_INTVL_BAD_INTERVAL;
+ free(result);
return NULL;
}