gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r36387 - gnunet/src/social


From: gnunet
Subject: [GNUnet-SVN] r36387 - gnunet/src/social
Date: Wed, 30 Sep 2015 20:50:16 +0200

Author: tg
Date: 2015-09-30 20:50:15 +0200 (Wed, 30 Sep 2015)
New Revision: 36387

Modified:
   gnunet/src/social/social_api.c
Log:
free fix

Modified: gnunet/src/social/social_api.c
===================================================================
--- gnunet/src/social/social_api.c      2015-09-29 08:39:15 UTC (rev 36386)
+++ gnunet/src/social/social_api.c      2015-09-30 18:50:15 UTC (rev 36387)
@@ -1269,7 +1269,7 @@
 
   const char *method_name = NULL;
   struct GNUNET_ENV_Environment *env = NULL;
-  struct GNUNET_PSYC_MessageHeader *entry_pmsg;
+  struct GNUNET_PSYC_MessageHeader *entry_pmsg = NULL;
   const void *data = NULL;
   uint16_t data_size = 0;
   char *str;
@@ -1308,7 +1308,8 @@
 
   if (NULL != env)
     GNUNET_ENV_environment_destroy (env);
-  GNUNET_free (entry_pmsg);
+  if (NULL != entry_pmsg)
+    GNUNET_free (entry_pmsg);
 }
 
 




reply via email to

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