[prev in list] [next in list] [prev in thread] [next in thread]
List: util-linux-ng
Subject: Re: [PATCH misc-utils/look] Fix memory leak
From: Davidlohr Bueso <dave.bueso () gmail ! com>
Date: 2010-07-28 21:22:28
Message-ID: 1280352148.1845.8.camel () cowboy
[Download RAW message or body]
Sorry, incorrect email CC, adding util-linux-ng@vger.kernel.org
Thanks,
Davidlohr
On Wed, 2010-07-28 at 17:18 -0400, Davidlohr Bueso wrote:
> look: Fix memory leak in look(1).
>
> Signed-off-by: Davidlohr Bueso <dave@gnu.org>
> ---
> misc-utils/look.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/misc-utils/look.c b/misc-utils/look.c
> index 9e25596..271ac92 100644
> --- a/misc-utils/look.c
> +++ b/misc-utils/look.c
> @@ -186,6 +186,9 @@ look(char *front, char *back)
>
> if (front)
> print_from(front, back);
> +
> + free(comparbuf);
> +
> return (front ? 0 : 1);
> }
>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic