summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-02 20:00:12 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-02 20:00:12 +0000
commit55a1afff4320314cd4b40a6f0b36d3a0f57b9c68 (patch)
tree2a6851dd47ed12787301aec84faee94ee7b82bdd /src/common
parentdc667b65a4138be2e3923c99fcbfd1bbd409fa39 (diff)
downloadhercules-55a1afff4320314cd4b40a6f0b36d3a0f57b9c68.tar.gz
hercules-55a1afff4320314cd4b40a6f0b36d3a0f57b9c68.tar.bz2
hercules-55a1afff4320314cd4b40a6f0b36d3a0f57b9c68.tar.xz
hercules-55a1afff4320314cd4b40a6f0b36d3a0f57b9c68.zip
* Fixed non-windows 'findfile' utils function missing a 'closedir' call (bugreport:4739, since r1629).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14692 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common')
-rw-r--r--src/common/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/utils.c b/src/common/utils.c
index 12123784f..945e3e337 100644
--- a/src/common/utils.c
+++ b/src/common/utils.c
@@ -183,6 +183,8 @@ void findfile(const char *p, const char *pat, void (func)(const char*))
findfile(tmppath, pat, func);
}
}//end while
+
+ closedir(dir);
}
#endif