Re: Fixing memory leak in pg_upgrade

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Cc: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fixing memory leak in pg_upgrade
Date: 2015-01-09 12:38:35
Message-ID: CAB7nPqRD=bVXGKn6k61mJj4TAaJi0W_MMBrmz1JnBC91VsieVQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jan 9, 2015 at 9:23 PM, Tatsuo Ishii <ishii(at)postgresql(dot)org> wrote:
> This is because gen_db_file_maps() allocates memory even if n_maps == 0.
Purely cosmetic: the initialization n_maps = 0 before the call of
gen_db_file_maps is unnecessary ;)
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rahila Syed 2015-01-09 12:49:41 Re: Compression of full-page-writes
Previous Message Tatsuo Ishii 2015-01-09 12:23:50 Fixing memory leak in pg_upgrade