mirror of
https://github.com/postgres/postgres.git
synced 2025-05-18 17:41:14 +03:00
Added free() calls against memory leak in interval.c.
This commit is contained in:
parent
4a9468bf29
commit
e5a806bb29
@ -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…
x
Reference in New Issue
Block a user