summaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-12-18 14:45:12 -0500
committerNick Mathewson <nickm@torproject.org>2013-01-16 22:29:39 -0500
commit5e06c4ee327b848f59578bc7d838cf34188ff6fd (patch)
tree8fdbf5a924438af68506ca8bdbe0697deca0ab1c /src/common/util.c
parent739e83ca694411c318d868e0838238b4e3d9b5eb (diff)
downloadtor-5e06c4ee327b848f59578bc7d838cf34188ff6fd.tar.gz
tor-5e06c4ee327b848f59578bc7d838cf34188ff6fd.zip
When building with MSVC, call every enum bitfield unsigned
Fixes bug 7305.
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index b0055d6c78..7fcf69e128 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -4919,7 +4919,8 @@ tor_check_port_forwarding(const char *filename,
status = tor_spawn_background(filename, argv, NULL, &child_handle);
#endif
- tor_free((void*)argv);
+ tor_free_((void*)argv);
+ argv=NULL;
if (PROCESS_STATUS_ERROR == status) {
log_warn(LD_GENERAL, "Failed to start port forwarding helper %s",