summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-12-07 11:11:26 -0500
committerNick Mathewson <nickm@torproject.org>2012-12-07 11:11:26 -0500
commit81fcebcd0541b13dce35969d0338da9b68eb1b0c (patch)
tree574f4787f61212b3677d316215682ca403fd006c
parent025dc19b63ce043d89e9f94743d0f74dd9d4e879 (diff)
parentb326e761442e61ffd39effbefd7f904c72890707 (diff)
downloadtor-81fcebcd0541b13dce35969d0338da9b68eb1b0c.tar.gz
tor-81fcebcd0541b13dce35969d0338da9b68eb1b0c.zip
Merge branch 'bug7306'
-rw-r--r--changes/bug73065
-rw-r--r--src/test/test_util.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/changes/bug7306 b/changes/bug7306
new file mode 100644
index 0000000000..949cc6037d
--- /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 04ca42dcd9..4bbcedd169 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