Added free() calls against memory leak in interval.c.
This commit is contained in:
parent
073f7312a4
commit
1fcaceeae0
@ -1841,6 +1841,10 @@ Mon, 5 Jul 2004 10:41:54 +0200
|
|||||||
- Fixed indicator in SET DESCRIPTOR.
|
- Fixed indicator in SET DESCRIPTOR.
|
||||||
- Added special handling of descriptor header information.
|
- Added special handling of descriptor header information.
|
||||||
- More code cleanup.
|
- 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 pgtypes library version to 1.2.
|
||||||
- Set ecpg version to 3.2.0.
|
- Set ecpg version to 3.2.0.
|
||||||
- Set compat library version to 1.2.
|
- Set compat library version to 1.2.
|
||||||
|
@ -782,12 +782,14 @@ PGTYPESinterval_from_asc(char *str, char **endptr)
|
|||||||
if (dtype != DTK_DELTA)
|
if (dtype != DTK_DELTA)
|
||||||
{
|
{
|
||||||
errno = PGTYPES_INTVL_BAD_INTERVAL;
|
errno = PGTYPES_INTVL_BAD_INTERVAL;
|
||||||
|
free(result);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tm2interval(tm, fsec, result) != 0)
|
if (tm2interval(tm, fsec, result) != 0)
|
||||||
{
|
{
|
||||||
errno = PGTYPES_INTVL_BAD_INTERVAL;
|
errno = PGTYPES_INTVL_BAD_INTERVAL;
|
||||||
|
free(result);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user