projects
/
oweals
/
opkg-lede.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
reduce a memory leak of closing dir
[oweals/opkg-lede.git]
/
libopkg
/
opkg_cmd.c
diff --git
a/libopkg/opkg_cmd.c
b/libopkg/opkg_cmd.c
index 91eb21a01c0b5bd4661b5bcbcca36d41156ac16d..6ac847a775b0d04862807418eaa45b16a7d84777 100644
(file)
--- 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);