aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-12-28 22:38:42 -0500
committerNick Mathewson <nickm@torproject.org>2012-12-28 22:38:42 -0500
commit4b571d3ab3d4c8e13fe0bc73f15431294d19615a (patch)
treef6eb3388568fc8732dec6a438464874e3521e8ed /src/or/control.c
parent52bf1556b18a3af0d7d4f612cd27e956353bf5b5 (diff)
downloadtor-4b571d3ab3d4c8e13fe0bc73f15431294d19615a.tar.gz
tor-4b571d3ab3d4c8e13fe0bc73f15431294d19615a.zip
Fix memory leak in safe-cookie authentication code
Coverity spotted this. Bug 7816. Fix on 0.2.3.13-alpha.
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 913d18a7fc..fc7bae23e1 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -3099,6 +3099,8 @@ handle_control_authchallenge(control_connection_t *conn, uint32_t len,
"SERVERNONCE=%s\r\n",
server_hash_encoded,
server_nonce_encoded);
+
+ tor_free(client_nonce);
return 0;
}