summaryrefslogtreecommitdiff
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
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
-rw-r--r--Changelog-Trunk.txt2
-rw-r--r--src/common/utils.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 1f0443233..499d2b7e1 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -1,5 +1,7 @@
Date Added
+2011/02/02
+ * Fixed non-windows 'findfile' utils function missing a 'closedir' call (bugreport:4739, since r1629). [Ai4rei]
2011/01/31
* Inventory and Cart item arrays are no longer getting compacted on each log-in/teleport/warp. [Ai4rei]
- This also resolves yet another issue caused by r14685 (bugreport:2604).
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