mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Added free() calls against memory leak in interval.c.
This commit is contained in:
parent
4a9468bf29
commit
e5a806bb29
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue