diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-10-26 22:12:40 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-10-26 22:12:40 -0400 |
commit | 5c73da7faad1537f63c0f9923a25f3dda9df0de1 (patch) | |
tree | d0af44057e396e18f3f43b1a74a2667a798dd9bf /src/or/router.c | |
parent | 8bada1ef67cd7e84f3f22f7e4ef8eb99a8252776 (diff) | |
download | tor-5c73da7faad1537f63c0f9923a25f3dda9df0de1.tar.gz tor-5c73da7faad1537f63c0f9923a25f3dda9df0de1.zip |
Fix two memory leaks found by Coverity (CIDs 417-418)
The first happens on an error case when a controller wants an
impossible directory object. The second happens when we can't write
our fingerprint file.
Diffstat (limited to 'src/or/router.c')
-rw-r--r-- | src/or/router.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/router.c b/src/or/router.c index fcfbe79112..dab4cb8938 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -588,6 +588,7 @@ init_keys(void) if (write_str_to_file(keydir, fingerprint_line, 0)) { log_err(LD_FS, "Error writing fingerprint line to file"); tor_free(keydir); + tor_free(cp); return -1; } } |