From: Davidlohr Bueso Date: Wed, 28 Jul 2010 21:20:38 +0000 (-0400) Subject: namei: fix memory leak in namei(1) X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf13602c24991c34421fb0daa5f0cc2ad68ffbaf;p=util-linux namei: fix memory leak in namei(1) Signed-off-by: Davidlohr Bueso --- diff --git a/misc-utils/namei.c b/misc-utils/namei.c index 3c465e43..6853e1ec 100644 --- a/misc-utils/namei.c +++ b/misc-utils/namei.c @@ -325,6 +325,9 @@ add_namei(struct namei *parent, const char *orgpath, int start, struct namei **l if (last) *last = nm; + + free(path); + return first; }