Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HbFo3-0007d6-8x for mharc-grub-devel@gnu.org; Tue, 10 Apr 2007 08:50:43 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HbFo1-0007aq-4T for grub-devel@gnu.org; Tue, 10 Apr 2007 08:50:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HbFnw-0007aa-PW for grub-devel@gnu.org; Tue, 10 Apr 2007 08:50:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HbFnw-0007aX-Gs for grub-devel@gnu.org; Tue, 10 Apr 2007 08:50:36 -0400 Received: from mx10.ms.so-net.ne.jp ([202.238.82.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HbFjz-0003Bf-HF for grub-devel@gnu.org; Tue, 10 Apr 2007 08:46:32 -0400 Received: from temjin (pddf83a.gifunt01.ap.so-net.ne.jp [218.221.248.58]) by mx10.ms.so-net.ne.jp with ESMTP id l3ACkBtA002287 for ; Tue, 10 Apr 2007 21:46:23 +0900 (JST) From: "Hitoshi Ozeki" To: "'The development of GRUB 2'" Date: Tue, 10 Apr 2007 21:46:17 +0900 Message-ID: <000001c77b6e$401d27a0$030010ac@ozeki> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 Importance: Normal Thread-Index: Acd7bjLexxXSRWMeQfOlgkrSYGEF/A== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-detected-kernel: Solaris 9.1 Subject: The memory allocated by the 'grub_parser_split_cmdline()' is leaked. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Apr 2007 12:50:41 -0000 Hello, all. Please see line 204 and 209 on the 'grub-1.95/kern/parser.c'. This code allocates memory. it stores arguments. -begin-------------------------------------------------------------------= --- --------- /* Reserve memory for the return values. */ args =3D grub_malloc (bp - buffer); if (! args) return grub_errno; grub_memcpy (args, buffer, bp - buffer); =20 *argv =3D grub_malloc (sizeof (char *) * (*argc + 1)); if (! *argv) { grub_free (args); return grub_errno; } -end---------------------------------------------------------------------= --- --------- And this code is called from 'grub_normal_do_completion ()' and=20 'grub_enter_rescue_mode ()'. But I cannot find the codes release its memory. Maybe leaks it. --=20 Hitoshi Ozeki h-ozeki@ck2.so-net.ne.jp