1
0
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:
Michael Meskes 2004-07-05 18:54:01 +00:00
parent 4a9468bf29
commit e5a806bb29

View File

@ -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;
}