scripts/common.c minor memory leak

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: scripts/common.c minor memory leak
Date: 2006-10-03 21:18:47
Message-ID: 20061003211847.GC17658@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Just a minor thing. In yesno_prompt(), the value is resp is allocated
memory that is never freed.

File: src/bin/scripts/common.c
Line: 218

Not terribly important though, it's not used in critical utilities, but
it's used often.

Found by coverity.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2006-10-03 21:25:58 Re: [HACKERS] Numeric overflow problem + patch
Previous Message Bruce Momjian 2006-10-03 21:11:55 Re: guc units cleanup

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2006-10-03 21:21:35 Re: minor improvements in messages
Previous Message Bruce Momjian 2006-10-03 21:11:55 Re: guc units cleanup