LRN: don't free memory on the stack
authorChristian Grothoff <christian@grothoff.org>
Sat, 18 Feb 2012 13:50:45 +0000 (13:50 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 18 Feb 2012 13:50:45 +0000 (13:50 +0000)
src/util/disk.c

index b2a70559359df312c03aadb30799eb5e4f598e70..e4d9f172a0bf68a8c06adaf37a5c734d1d3c2fdb 100644 (file)
@@ -473,7 +473,6 @@ GNUNET_DISK_get_blocks_available (const char *part)
   }
   GNUNET_free (path);
   wcsncpy (szDrive, wpath, 3);
-  GNUNET_free (wpath);
   szDrive[3] = 0;
   if (!GetDiskFreeSpaceW (szDrive, &dwDummy, &dwDummy, &dwBlocks, &dwDummy))
   {