pg_dump: fix memory leak - Mailing list pgsql-hackers

From m.korotkov@postgrespro.ru
Subject pg_dump: fix memory leak
Date
Msg-id 8b73c4804ee5b8f1cf4fed16635e2d1b@postgrespro.ru
Whole thread Raw
Responses Re: pg_dump: fix memory leak
List pgsql-hackers
Hi all,
I have found a potential memory leak in src/bin/pg_dump/dumputils.c in 
the function generate_restrict_key().
Memory is allocated to the ret pointer if pg_strong_random returns 
false, and this leads to a memory leak.
I have replaced the allocation to avoid this leak.
---
Best regards, Korotkov Maksim
PostgresPro
m.korotkov@postgrespro.ru
Attachment

pgsql-hackers by date:

Previous
From: Yugo Nagata
Date:
Subject: Re: Inconsistent update in the MERGE command
Next
From: Sami Imseih
Date:
Subject: Re: Improve LWLock tranche name visibility across backends