[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r8961 - gnunet/src/fs
From: |
gnunet |
Subject: |
[GNUnet-SVN] r8961 - gnunet/src/fs |
Date: |
Mon, 7 Sep 2009 07:09:12 -0600 |
Author: grothoff
Date: 2009-09-07 07:09:11 -0600 (Mon, 07 Sep 2009)
New Revision: 8961
Modified:
gnunet/src/fs/fs_directory.c
Log:
make gcc happy
Modified: gnunet/src/fs/fs_directory.c
===================================================================
--- gnunet/src/fs/fs_directory.c 2009-09-07 13:03:55 UTC (rev 8960)
+++ gnunet/src/fs/fs_directory.c 2009-09-07 13:09:11 UTC (rev 8961)
@@ -512,6 +512,9 @@
size = 8 + sizeof (uint32_t);
size += GNUNET_CONTAINER_meta_data_get_serialized_size (bld->meta,
GNUNET_CONTAINER_META_DATA_SERIALIZE_FULL);
+ sizes = NULL;
+ perm = NULL;
+ bes = NULL;
if (bld->count > 0)
{
sizes = GNUNET_malloc (bld->count * sizeof (size_t));
@@ -563,12 +566,9 @@
sizes[i]);
GNUNET_free (bes[i]);
}
- if (bld->count > 0)
- {
- GNUNET_free (sizes);
- GNUNET_free (perm);
- GNUNET_free (bes);
- }
+ GNUNET_free_non_null (sizes);
+ GNUNET_free_non_null (perm);
+ GNUNET_free_non_null (bes);
GNUNET_assert (off == size);
GNUNET_CONTAINER_meta_data_destroy (bld->meta);
GNUNET_free (bld);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r8961 - gnunet/src/fs,
gnunet <=