gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r37261 - gnunet/src/my


From: gnunet
Subject: [GNUnet-SVN] r37261 - gnunet/src/my
Date: Fri, 10 Jun 2016 11:19:27 +0200

Author: christophe.genevey
Date: 2016-06-10 11:19:27 +0200 (Fri, 10 Jun 2016)
New Revision: 37261

Modified:
   gnunet/src/my/test_my.c
Log:
finish to fix memory leak

Modified: gnunet/src/my/test_my.c
===================================================================
--- gnunet/src/my/test_my.c     2016-06-10 00:23:30 UTC (rev 37260)
+++ gnunet/src/my/test_my.c     2016-06-10 09:19:27 UTC (rev 37261)
@@ -75,6 +75,9 @@
   u32 = 32;
   u64 = 64;
 
+  memset (&hc, 0, sizeof(hc));
+  memset (&hc2, 0, sizeof(hc2));
+  
   statements_handle_insert = GNUNET_MYSQL_statement_prepare (context,
                                         "INSERT INTO test_my2 ("
                                         " pub"
@@ -205,8 +208,8 @@
 int
 main (int argc, const char * const argv[])
 {
-  struct GNUNET_CONFIGURATION_Handle *config;
-  struct GNUNET_MYSQL_Context *context;
+  struct GNUNET_CONFIGURATION_Handle *config = NULL;
+  struct GNUNET_MYSQL_Context *context = NULL;
   int ret;
 
   GNUNET_log_setup (  "test-my",




reply via email to

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