diff options
Diffstat (limited to 'src/feature/dirauth/dirvote.c')
-rw-r--r-- | src/feature/dirauth/dirvote.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/feature/dirauth/dirvote.c b/src/feature/dirauth/dirvote.c index 1080415827..0783fb1e91 100644 --- a/src/feature/dirauth/dirvote.c +++ b/src/feature/dirauth/dirvote.c @@ -3543,8 +3543,10 @@ dirvote_compute_consensuses(void) { char *filename; tor_asprintf(&filename, "my-consensus-%s", flavor_name); - write_str_to_file(get_datadir_fname(filename), consensus_body, 0); + char *fpath = get_datadir_fname(filename); + write_str_to_file(fpath, consensus_body, 0); tor_free(filename); + tor_free(fpath); } consensus_body = NULL; |