gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-exchange] branch master updated (7c48ce60 -> 7263711


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated (7c48ce60 -> 7263711a)
Date: Sun, 30 Jun 2019 17:13:04 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a change to branch master
in repository exchange.

    from 7c48ce60 doxyfile
     new fc8fb5b0 fix leaks
     new 72fea453 indenting
     new 7263711a indenting

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 src/auditor/taler-auditor-dbinit.c          | 28 +++++++++----------
 src/auditor/taler-auditor-exchange.c        |  6 ++--
 src/auditor/taler-auditor-sign.c            | 14 +++++-----
 src/lib/teah_common.c                       |  2 ++
 src/lib/testing_api_cmd_fakebank_transfer.c |  3 +-
 src/lib/testing_api_cmd_refund.c            | 43 +++++++++++++++--------------
 6 files changed, 51 insertions(+), 45 deletions(-)

diff --git a/src/auditor/taler-auditor-dbinit.c 
b/src/auditor/taler-auditor-dbinit.c
index 5031ed9f..6b4e3424 100644
--- a/src/auditor/taler-auditor-dbinit.c
+++ b/src/auditor/taler-auditor-dbinit.c
@@ -76,11 +76,11 @@ run (void *cls,
     return;
   }
   if (gc_db)
-    {
-      if (GNUNET_SYSERR == plugin->gc (plugin->cls))
-        fprintf (stderr,
-                 "Garbage collection failed!\n");
-    }
+  {
+    if (GNUNET_SYSERR == plugin->gc (plugin->cls))
+      fprintf (stderr,
+               "Garbage collection failed!\n");
+  }
   TALER_AUDITORDB_plugin_unload (plugin);
 }
 
@@ -99,13 +99,13 @@ main (int argc,
 {
   const struct GNUNET_GETOPT_CommandLineOption options[] = {
     GNUNET_GETOPT_option_flag ('r',
-                                  "reset",
-                                  "reset database (DANGEROUS: all existing 
data is lost!)",
-                                  &reset_db),
+                               "reset",
+                               "reset database (DANGEROUS: all existing data 
is lost!)",
+                               &reset_db),
     GNUNET_GETOPT_option_flag ('g',
-                                  "gc",
-                                  "garbage collect database",
-                                  &gc_db),
+                               "gc",
+                               "garbage collect database",
+                               &gc_db),
     GNUNET_GETOPT_OPTION_END
   };
 
@@ -120,9 +120,9 @@ main (int argc,
   if (GNUNET_OK !=
       GNUNET_PROGRAM_run (argc, argv,
                           "taler-auditor-dbinit",
-                         "Initialize Taler auditor database",
-                         options,
-                         &run, NULL))
+                          "Initialize Taler auditor database",
+                          options,
+                          &run, NULL))
     return 1;
   return global_ret;
 }
diff --git a/src/auditor/taler-auditor-exchange.c 
b/src/auditor/taler-auditor-exchange.c
index 312896e4..4837601d 100644
--- a/src/auditor/taler-auditor-exchange.c
+++ b/src/auditor/taler-auditor-exchange.c
@@ -1,6 +1,6 @@
 /*
   This file is part of TALER
-  Copyright (C) 2014, 2015, 2018 GNUnet e.V.
+  Copyright (C) 2014, 2015, 2018, 2019 Taler Systems SA
 
   TALER is free software; you can redistribute it and/or modify it under the
   terms of the GNU General Public License as published by the Free Software
@@ -137,8 +137,8 @@ main (int argc,
       return 3;
     }
   }
-         
-  
+
+
   if (NULL ==
       (adb = TALER_AUDITORDB_plugin_load (cfg)))
   {
diff --git a/src/auditor/taler-auditor-sign.c b/src/auditor/taler-auditor-sign.c
index 90efbd0e..ad2be67a 100644
--- a/src/auditor/taler-auditor-sign.c
+++ b/src/auditor/taler-auditor-sign.c
@@ -397,13 +397,13 @@ main (int argc,
                                          dk);
       if (0 > qs)
       {
-       fprintf (stderr,
-                "Failed to store key in auditor DB (did you add the exchange 
first?)\n");
-       TALER_AUDITORDB_plugin_unload (adb);
-       GNUNET_free (dks);
-       GNUNET_free (sigs);
-       GNUNET_free (eddsa_priv);
-       return 3;
+        fprintf (stderr,
+                 "Failed to store key in auditor DB (did you add the exchange 
using taler-auditor-exchange first?)\n");
+        TALER_AUDITORDB_plugin_unload (adb);
+        GNUNET_free (dks);
+        GNUNET_free (sigs);
+        GNUNET_free (eddsa_priv);
+        return 3;
       }
     }
   }
diff --git a/src/lib/teah_common.c b/src/lib/teah_common.c
index 8377c478..b8bea187 100644
--- a/src/lib/teah_common.c
+++ b/src/lib/teah_common.c
@@ -111,5 +111,7 @@ TALER_curl_easy_post (struct TEAH_PostContext *ctx,
 void
 TALER_curl_easy_post_finished (struct TEAH_PostContext *ctx)
 {
+  curl_slist_free_all (ctx->headers);
+  ctx->headers = NULL;
   GNUNET_free_non_null (ctx->json_enc);
 }
diff --git a/src/lib/testing_api_cmd_fakebank_transfer.c 
b/src/lib/testing_api_cmd_fakebank_transfer.c
index cff16157..570dee37 100644
--- a/src/lib/testing_api_cmd_fakebank_transfer.c
+++ b/src/lib/testing_api_cmd_fakebank_transfer.c
@@ -330,6 +330,7 @@ fakebank_transfer_run (void *cls,
           return;
         }
         priv = GNUNET_CRYPTO_eddsa_key_create_from_file (keys);
+        GNUNET_free (keys);
         if (NULL == priv)
         {
           GNUNET_log_config_invalid
@@ -337,12 +338,12 @@ fakebank_transfer_run (void *cls,
              section,
              "TIP_RESERVE_PRIV_FILENAME",
              "Failed to read private key");
-          GNUNET_free (keys);
           GNUNET_free (section);
           TALER_TESTING_interpreter_fail (is);
           return;
         }
         fts->reserve_priv.eddsa_priv = *priv;
+        GNUNET_free (section);
         GNUNET_free (priv);
         GNUNET_CONFIGURATION_destroy (cfg);
       }
diff --git a/src/lib/testing_api_cmd_refund.c b/src/lib/testing_api_cmd_refund.c
index f6640d0f..55f329dd 100644
--- a/src/lib/testing_api_cmd_refund.c
+++ b/src/lib/testing_api_cmd_refund.c
@@ -114,10 +114,10 @@ refund_cb (void *cls,
     TALER_TESTING_interpreter_fail (rs->is);
     return;
   }
-
   TALER_TESTING_interpreter_next (rs->is);
 }
 
+
 /**
  * Run the command.
  *
@@ -248,6 +248,7 @@ refund_cleanup (void *cls,
   GNUNET_free (rs);
 }
 
+
 /**
  * Create a "refund" command.
  *
@@ -275,17 +276,19 @@ TALER_TESTING_cmd_refund (const char *label,
   rs->refund_amount = refund_amount;
   rs->refund_fee = refund_fee;
   rs->coin_reference = coin_reference;
-
-  struct TALER_TESTING_Command cmd = {
-    .cls = rs,
-    .label = label,
-    .run = &refund_run,
-    .cleanup = &refund_cleanup
-  };
-
-  return cmd;
+  {
+    struct TALER_TESTING_Command cmd = {
+      .cls = rs,
+      .label = label,
+      .run = &refund_run,
+      .cleanup = &refund_cleanup
+    };
+
+    return cmd;
+  }
 }
 
+
 /**
  * Create a "refund" command, allow to specify refund transaction
  * id.  Mainly used to create conflicting requests.
@@ -313,19 +316,19 @@ TALER_TESTING_cmd_refund_with_id
   struct RefundState *rs;
 
   rs = GNUNET_new (struct RefundState);
-
   rs->expected_response_code = expected_response_code;
   rs->refund_amount = refund_amount;
   rs->refund_fee = refund_fee;
   rs->coin_reference = coin_reference;
   rs->refund_transaction_id = refund_transaction_id;
-
-  struct TALER_TESTING_Command cmd = {
-    .cls = rs,
-    .label = label,
-    .run = &refund_run,
-    .cleanup = &refund_cleanup
-  };
-
-  return cmd;
+  {
+    struct TALER_TESTING_Command cmd = {
+      .cls = rs,
+      .label = label,
+      .run = &refund_run,
+      .cleanup = &refund_cleanup
+    };
+
+    return cmd;
+  }
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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