Skip to content

Commit 1fcacee

Browse files
author
Michael Meskes
committed
Added free() calls against memory leak in interval.c.
1 parent 073f731 commit 1fcacee

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/interfaces/ecpg/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,10 @@ Mon, 5 Jul 2004 10:41:54 +0200
18411841
- Fixed indicator in SET DESCRIPTOR.
18421842
- Added special handling of descriptor header information.
18431843
- More code cleanup.
1844+
1845+
Mon Jul 5 20:50:09 CEST 2004
1846+
1847+
- Added free() calls against memory leak in interval.c.
18441848
- Set pgtypes library version to 1.2.
18451849
- Set ecpg version to 3.2.0.
18461850
- Set compat library version to 1.2.

src/interfaces/ecpg/pgtypeslib/interval.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,12 +782,14 @@ PGTYPESinterval_from_asc(char *str, char **endptr)
782782
if (dtype != DTK_DELTA)
783783
{
784784
errno = PGTYPES_INTVL_BAD_INTERVAL;
785+
free(result);
785786
return NULL;
786787
}
787788

788789
if (tm2interval(tm, fsec, result) != 0)
789790
{
790791
errno = PGTYPES_INTVL_BAD_INTERVAL;
792+
free(result);
791793
return NULL;
792794
}
793795

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy