]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
bugfix on r11301:
authorRoger Dingledine <arma@torproject.org>
Thu, 11 Oct 2007 03:10:52 +0000 (03:10 +0000)
committerRoger Dingledine <arma@torproject.org>
Thu, 11 Oct 2007 03:10:52 +0000 (03:10 +0000)
Fix a minor memory leak whenever we wrote out a file. Bugfix on
0.2.0.7-alpha.

svn:r11863

ChangeLog
src/common/util.c

index 7c36d620f8010900e1f13b3117a966a2480ce2cd..bbbb83235cfb5dda3ac3303d604d18f4a2a5e372 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -93,6 +93,8 @@ Changes in version 0.2.0.8-alpha - 2007-10-12
       Bugfix in 0.2.0.7-alpha.
     - Fix a minor memory leak whenever we parse guards from our state
       file. Bugfix on 0.2.0.7-alpha.
+    - Fix a minor memory leak whenever we wrote out a file. Bugfix on
+      0.2.0.7-alpha.
 
   o Code simplifications and refactoring:
     - Make a bunch of functions static.  Remove some dead code.
index 6786fd749e5e728f19a3dca927396e6a80e13e3f..7a5740cc99d47306bcd91b54a2a5d1329c366de2 100644 (file)
@@ -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);