From: ticktock35 Date: Thu, 26 Mar 2009 08:26:27 +0000 (+0000) Subject: reduce a memory leak of closing dir X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=80fa18779f694b6643f4bf711e72168092aba800;p=oweals%2Fopkg-lede.git reduce a memory leak of closing dir git-svn-id: http://opkg.googlecode.com/svn/trunk@207 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- diff --git a/libopkg/opkg_cmd.c b/libopkg/opkg_cmd.c index 91eb21a..6ac847a 100644 --- a/libopkg/opkg_cmd.c +++ b/libopkg/opkg_cmd.c @@ -379,6 +379,7 @@ static int opkg_finalize_intercepts(opkg_intercept_t ctx) } free (path); } + closedir(dir); } else perror (ctx->statedir);