From: Davidlohr Bueso Date: Wed, 28 Jul 2010 21:17:56 +0000 (-0400) Subject: look: fix memory leak in look(1) X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c91f5e3e1de32c45ea0b38227ce35eb43eb2ebc;p=util-linux look: fix memory leak in look(1) Signed-off-by: Davidlohr Bueso --- diff --git a/misc-utils/look.c b/misc-utils/look.c index 9e255965..54fbb918 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); }