gnunet-svn
[Top][All Lists]
Advanced

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

[taler-taler-mdb] 02/02: clearly no leak, remove unnecessary init, remov


From: gnunet
Subject: [taler-taler-mdb] 02/02: clearly no leak, remove unnecessary init, remove unnecessary nfc_close()
Date: Thu, 31 Oct 2019 12:25:17 +0100

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

grothoff pushed a commit to branch master
in repository taler-mdb.

commit e5b14730c3f9c67671044cc2540572fdb7cca88a
Author: Christian Grothoff <address@hidden>
AuthorDate: Thu Oct 31 12:25:13 2019 +0100

    clearly no leak, remove unnecessary init, remove unnecessary nfc_close()
---
 src/nfc.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/nfc.c b/src/nfc.c
index a4ac1ad..2be0a11 100644
--- a/src/nfc.c
+++ b/src/nfc.c
@@ -37,15 +37,12 @@ along with
 
 int nfc_transmit (nfc_context *context, const char *talerPayUrl, size_t 
urlSize)
 {
-  nfc_device *pnd = NULL;
-
-  
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 MEMORY LEAK? NFC OPEN?
+  nfc_device *pnd;
 
   pnd = nfc_open (context, NULL);    // NULL could be replaced with connstring 
if the correct is known
   if ( ! pnd )
   {
     printf ("Unable to open NFC device\n");
-    nfc_close (pnd);
     return EXIT_FAILURE;
   }
 
@@ -68,7 +65,6 @@ int nfc_transmit (nfc_context *context, const char 
*talerPayUrl, size_t urlSize)
     nfc_close (pnd);
     return EXIT_FAILURE;
   }
-  ;
 
   // send the message to the wallet
   if ( wallet_transmit (pnd, talerPayUrl, urlSize) )

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



reply via email to

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