Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 3A86A1B7B373 for ; Sun, 3 Jun 2012 12:54:44 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SbD8d-0000tJ-D1 for pgsql-bugs@postgresql.org; Sun, 03 Jun 2012 15:54:43 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q53FsTkj010453; Sun, 3 Jun 2012 11:54:30 -0400 (EDT) To: Josh Kupershmidt cc: zaks.anna@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #6672: Memory leaks in dumputils.c In-reply-to: References: <2620.1338527206@sss.pgh.pa.us> Comments: In-reply-to Josh Kupershmidt message dated "Fri, 01 Jun 2012 11:13:23 -0700" Date: Sun, 03 Jun 2012 11:54:29 -0400 Message-ID: <10452.1338738869@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201206/10 X-Sequence-Number: 33237 Josh Kupershmidt writes: >> zaks.anna@gmail.com writes: >>> There are two memory leaks in dumputils (v9.2.0beta1): > ... Both of these errors seem academic, since the callers > of buildACLCommands() will bail out with exit_horribly() or > exit_nicely() if it returns false. But IMO it's worth fixing anyway, > to keep the compilers happy or in case of future code calling > buildACLCommands() or parseAclItem(). Agreed. > Attached is a patch to hopefully fix those two errors. Applied, thanks. regards, tom lane