From 80fa18779f694b6643f4bf711e72168092aba800 Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Thu, 26 Mar 2009 04:26:27 -0400 Subject: reduce a memory leak of closing dir git-svn-id: http://opkg.googlecode.com/svn/trunk@207 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg') 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); -- cgit v0.9.1