diff options
Diffstat (limited to 'src/or/hibernate.c')
-rw-r--r-- | src/or/hibernate.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/or/hibernate.c b/src/or/hibernate.c index e189898374..8fade846c5 100644 --- a/src/or/hibernate.c +++ b/src/or/hibernate.c @@ -575,10 +575,9 @@ read_bandwidth_usage(void) or_state_t *state = get_or_state(); { - char fname[512]; - tor_snprintf(fname, sizeof(fname), "%s/bw_accounting", - get_options()->DataDirectory); + char *fname = get_datadir_fname("bw_accounting"); unlink(fname); + tor_free(fname); } if (!state) |