From bf13602c24991c34421fb0daa5f0cc2ad68ffbaf Mon Sep 17 00:00:00 2001 From: Davidlohr Bueso Date: Wed, 28 Jul 2010 17:20:38 -0400 Subject: [PATCH] namei: fix memory leak in namei(1) Signed-off-by: Davidlohr Bueso --- misc-utils/namei.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.39.5