gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r16820 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r16820 - gnunet/src/util
Date: Wed, 14 Sep 2011 09:24:03 +0200

Author: grothoff
Date: 2011-09-14 09:24:03 +0200 (Wed, 14 Sep 2011)
New Revision: 16820

Modified:
   gnunet/src/util/getopt_helpers.c
   gnunet/src/util/program.c
Log:
fixing 1753

Modified: gnunet/src/util/getopt_helpers.c
===================================================================
--- gnunet/src/util/getopt_helpers.c    2011-09-14 07:15:07 UTC (rev 16819)
+++ gnunet/src/util/getopt_helpers.c    2011-09-14 07:24:03 UTC (rev 16820)
@@ -223,8 +223,7 @@
   char **val = scls;
 
   GNUNET_assert (value != NULL);
-  if (NULL != *val)
-    GNUNET_free (*val);
+  GNUNET_free_non_null (*val);
   *val = GNUNET_strdup (value);
   return GNUNET_OK;
 }

Modified: gnunet/src/util/program.c
===================================================================
--- gnunet/src/util/program.c   2011-09-14 07:15:07 UTC (rev 16819)
+++ gnunet/src/util/program.c   2011-09-14 07:24:03 UTC (rev 16820)
@@ -224,6 +224,7 @@
     GNUNET_CONFIGURATION_destroy (cfg);
     GNUNET_free_non_null (cc.cfgfile);
     GNUNET_free (loglev);
+    GNUNET_free (logfile);
     GNUNET_free (allopts);
     GNUNET_free (lpfx);
     return GNUNET_SYSERR;
@@ -248,6 +249,7 @@
   GNUNET_CONFIGURATION_destroy (cfg);
   GNUNET_free_non_null (cc.cfgfile);
   GNUNET_free (loglev);
+  GNUNET_free (logfile);
   return GNUNET_OK;
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]