aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-10-11 03:10:52 +0000
committerRoger Dingledine <arma@torproject.org>2007-10-11 03:10:52 +0000
commitbab60e5ade38de854eed980d5c397d9cee051792 (patch)
tree5896d32d843ceec8ae17adc72945f6486536dad8 /src/common/util.c
parent900ddcb8fdc46efb25764582fd8569b94b3cf20a (diff)
downloadtor-bab60e5ade38de854eed980d5c397d9cee051792.tar
tor-bab60e5ade38de854eed980d5c397d9cee051792.tar.gz
bugfix on r11301:
Fix a minor memory leak whenever we wrote out a file. Bugfix on 0.2.0.7-alpha. svn:r11863
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 6786fd749..7a5740cc9 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1657,8 +1657,6 @@ finish_writing_to_file_impl(open_file_t *file_data, int abort_write)
}
}
- memset(file_data, 0, sizeof(file_data));
- file_data->fd = -1;
tor_free(file_data->filename);
tor_free(file_data->tempname);
tor_free(file_data);