aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-18 13:50:45 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-18 13:50:45 +0000
commit187184e240b2d1cb49e7183b8f80ee974c30460d (patch)
tree47a1c4b2a81fdb512215e40aaccb535b158da9e9 /src/util
parent847f1b045f087dac3ed2b8989a0512610b58b00d (diff)
downloadgnunet-187184e240b2d1cb49e7183b8f80ee974c30460d.tar.gz
gnunet-187184e240b2d1cb49e7183b8f80ee974c30460d.zip
LRN: don't free memory on the stack
Diffstat (limited to 'src/util')
-rw-r--r--src/util/disk.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/util/disk.c b/src/util/disk.c
index b2a705593..e4d9f172a 100644
--- a/src/util/disk.c
+++ b/src/util/disk.c
@@ -473,7 +473,6 @@ GNUNET_DISK_get_blocks_available (const char *part)
473 } 473 }
474 GNUNET_free (path); 474 GNUNET_free (path);
475 wcsncpy (szDrive, wpath, 3); 475 wcsncpy (szDrive, wpath, 3);
476 GNUNET_free (wpath);
477 szDrive[3] = 0; 476 szDrive[3] = 0;
478 if (!GetDiskFreeSpaceW (szDrive, &dwDummy, &dwDummy, &dwBlocks, &dwDummy)) 477 if (!GetDiskFreeSpaceW (szDrive, &dwDummy, &dwDummy, &dwBlocks, &dwDummy))
479 { 478 {