commit b326e761442e61ffd39effbefd7f904c72890707 Author: Nick Mathewson nickm@torproject.org Date: Thu Dec 6 10:59:02 2012 -0500
Use FreeLibrary, not CloseHandle, for library in test_util.c
Fix for bug 7306. Bugfix on 0.2.2.17-alpha. --- changes/bug7306 | 5 +++++ src/test/test_util.c | 2 +- 2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/changes/bug7306 b/changes/bug7306 new file mode 100644 index 0000000..949cc60 --- /dev/null +++ b/changes/bug7306 @@ -0,0 +1,5 @@ + o Minor bugfixes: + - Fix a crash when debugging unit tests on windows: deallocate a + shared library with FreeLibrary, not CloseHandle. Fixes bug #7306; + bugfix on 0.2.2.17-alpha. Reported by "ultramage". + diff --git a/src/test/test_util.c b/src/test/test_util.c index 04ca42d..4bbcedd 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -2290,7 +2290,7 @@ test_util_load_win_lib(void *ptr) tt_assert(h); done: if (h) - CloseHandle(h); + FreeLibrary(h); } #endif
tor-commits@lists.torproject.org