[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r2714 - gnunet-gtk/src/plugins/fs
From: |
durner |
Subject: |
[GNUnet-SVN] r2714 - gnunet-gtk/src/plugins/fs |
Date: |
Tue, 2 May 2006 15:23:07 -0700 (PDT) |
Author: durner
Date: 2006-05-02 15:23:04 -0700 (Tue, 02 May 2006)
New Revision: 2714
Modified:
gnunet-gtk/src/plugins/fs/download.c
Log:
maybe unintialized pointer, freed to early (Mantis #1068)
Modified: gnunet-gtk/src/plugins/fs/download.c
===================================================================
--- gnunet-gtk/src/plugins/fs/download.c 2006-05-02 21:30:51 UTC (rev
2713)
+++ gnunet-gtk/src/plugins/fs/download.c 2006-05-02 22:23:04 UTC (rev
2714)
@@ -127,7 +127,7 @@
char *dirPath;
unsigned int dirPathLen;
#ifdef WINDOWS
- char *filehash;
+ char *filehash = NULL;
#endif
DEBUG_BEGIN();
@@ -314,9 +314,6 @@
-1);
FREE(uri_name);
FREE(dirPath);
-#ifdef WINDOWS
- FREENONNULL(filehash);
-#endif
FREENONNULL(final_download_dir);
@@ -334,6 +331,11 @@
anon,
uri,
final_download_destination);
+
+#ifdef WINDOWS
+ FREENONNULL(filehash);
+#endif
+
DEBUG_END();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r2714 - gnunet-gtk/src/plugins/fs,
durner <=