Re: [PATCH misc-utils/look] Fix memory leak

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry, incorrect email CC, adding util-linux-ng@xxxxxxxxxxxxxxx

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@xxxxxxx>
> ---
>  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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux