From 80fa18779f694b6643f4bf711e72168092aba800 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Thu, 26 Mar 2009 08:26:27 +0000 Subject: [PATCH] reduce a memory leak of closing dir git-svn-id: http://opkg.googlecode.com/svn/trunk@207 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- libopkg/opkg_cmd.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.25.1