BUG #6672: Memory leaks in dumputils.c - Mailing list pgsql-bugs

From zaks.anna@gmail.com
Subject BUG #6672: Memory leaks in dumputils.c
Date
Msg-id E1SaDxz-0004Vi-8t@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #6672: Memory leaks in dumputils.c
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      6672
Logged by:          Anna Zaks
Email address:      zaks.anna@gmail.com
PostgreSQL version: 9.1.3
Operating system:   MacOSX
Description:=20=20=20=20=20=20=20=20

There are two memory leaks in dumputils (v9.2.0beta1):

1)
File:   src/bin/scripts/dumputils.c
Location:       line 604, column 11
Description:    Memory is never released; potential leak of memory
pointed to by 'aclitems'

2)
File:   src/bin/scripts/dumputils.c
Location:       line 793, column 10
Description:    Memory is never released; potential leak of memory
pointed to by 'eqpos'

See detailed error paths in the attached html reports.

Issues found by clang static analyzer.

pgsql-bugs by date:

Previous
From: Edmund Horner
Date:
Subject: Re: 9.2 beta1 libxml2 can't be loaded on Windows
Next
From: Bruce Momjian
Date:
Subject: Re: BUG #6666: pg_upgrade 9.2beta1 plpython/plpython2