reduce a memory leak of closing dir
[oweals/opkg-lede.git] / libopkg / opkg_cmd.c
index 91eb21a01c0b5bd4661b5bcbcca36d41156ac16d..6ac847a775b0d04862807418eaa45b16a7d84777 100644 (file)
@@ -379,6 +379,7 @@ static int opkg_finalize_intercepts(opkg_intercept_t ctx)
            }
            free (path);
        }
+        closedir(dir);
     } else
        perror (ctx->statedir);