From 5c73da7faad1537f63c0f9923a25f3dda9df0de1 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 26 Oct 2009 22:12:40 -0400 Subject: 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. --- src/or/router.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/or/router.c') 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; } } -- cgit v1.2.3-54-g00ecf