From: Fredrik Tolf Date: Mon, 3 Jan 2011 07:39:17 +0000 (+0100) Subject: dirplex: Plugged a memory leak. X-Git-Tag: 0.5~7 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=240d9bcdcd247c14555d204e471b4fee095dd47a dirplex: Plugged a memory leak. --- diff --git a/src/dirplex/dirplex.c b/src/dirplex/dirplex.c index d5aabea..358d0b1 100644 --- a/src/dirplex/dirplex.c +++ b/src/dirplex/dirplex.c @@ -280,7 +280,8 @@ static int checkpath(struct hthead *req, int fd, char *path, char *rest) if(!*el) { replrest(req, rest); handledir(req, fd, path); - return(1); + rv = 1; + goto out; } rv = checkentry(req, fd, path, rest, el);