Commit 1fcaceea authored by Michael Meskes's avatar Michael Meskes

Added free() calls against memory leak in interval.c.

parent 073f7312
......@@ -1841,6 +1841,10 @@ Mon, 5 Jul 2004 10:41:54 +0200
- Fixed indicator in SET DESCRIPTOR.
- Added special handling of descriptor header information.
- More code cleanup.
Mon Jul 5 20:50:09 CEST 2004
- Added free() calls against memory leak in interval.c.
- Set pgtypes library version to 1.2.
- Set ecpg version to 3.2.0.
- Set compat library version to 1.2.
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment