]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Use FreeLibrary, not CloseHandle, for library in test_util.c
authorNick Mathewson <nickm@torproject.org>
Thu, 6 Dec 2012 15:59:02 +0000 (10:59 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 6 Dec 2012 15:59:02 +0000 (10:59 -0500)
Fix for bug 7306. Bugfix on 0.2.2.17-alpha.

changes/bug7306 [new file with mode: 0644]
src/test/test_util.c

diff --git a/changes/bug7306 b/changes/bug7306
new file mode 100644 (file)
index 0000000..949cc60
--- /dev/null
@@ -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".
+
index 04ca42dcd923ca0c1d140a09a699b333022d5ebc..4bbcedd1692f6ff8a15a41a19284504671987b76 100644 (file)
@@ -2290,7 +2290,7 @@ test_util_load_win_lib(void *ptr)
   tt_assert(h);
  done:
   if (h)
-    CloseHandle(h);
+    FreeLibrary(h);
 }
 #endif