From bab60e5ade38de854eed980d5c397d9cee051792 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Thu, 11 Oct 2007 03:10:52 +0000 Subject: bugfix on r11301: Fix a minor memory leak whenever we wrote out a file. Bugfix on 0.2.0.7-alpha. svn:r11863 --- src/common/util.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/common/util.c') diff --git a/src/common/util.c b/src/common/util.c index 6786fd749e..7a5740cc99 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); -- cgit v1.2.3-54-g00ecf