[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-readline] Re: PATCH: readline/bind.c, resource leak
From: |
Jim Blandy |
Subject: |
[Bug-readline] Re: PATCH: readline/bind.c, resource leak |
Date: |
Tue, 14 Aug 2007 16:54:04 -0700 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Looks right to me.
address@hidden writes:
> 2007-07-31 Michael Snyder <address@hidden>
>
> * bind.c (rl_generic_bind): Resource leak.
>
> Index: bind.c
> ===================================================================
> RCS file: /cvs/src/src/readline/bind.c,v
> retrieving revision 1.8
> diff -p -r1.8 bind.c
> *** bind.c 5 May 2006 18:26:12 -0000 1.8
> --- bind.c 1 Aug 2007 02:05:21 -0000
> *************** rl_generic_bind (type, keyseq, data, map
> *** 370,376 ****
>
> ic = uc;
> if (ic < 0 || ic >= KEYMAP_SIZE)
> ! return -1;
>
> if (META_CHAR (ic) && _rl_convert_meta_chars_to_ascii)
> {
> --- 370,379 ----
>
> ic = uc;
> if (ic < 0 || ic >= KEYMAP_SIZE)
> ! {
> ! free (keys);
> ! return -1;
> ! }
>
> if (META_CHAR (ic) && _rl_convert_meta_chars_to_ascii)
> {