gnunet-svn
[Top][All Lists]
Advanced

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

[taler-merchant] 23/51: fix memory management in case of error


From: gnunet
Subject: [taler-merchant] 23/51: fix memory management in case of error
Date: Thu, 13 Jun 2024 17:03:32 +0200

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

christian-blaettler pushed a commit to branch master
in repository merchant.

commit e83caaa1ce76a7d1801b016beafb88a1a564dd73
Author: Christian Blättler <blatc2@bfh.ch>
AuthorDate: Fri Apr 26 09:29:51 2024 +0200

    fix memory management in case of error
---
 src/backenddb/pg_lookup_token_family_key.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/backenddb/pg_lookup_token_family_key.c 
b/src/backenddb/pg_lookup_token_family_key.c
index fc1045df..33fc0b27 100644
--- a/src/backenddb/pg_lookup_token_family_key.c
+++ b/src/backenddb/pg_lookup_token_family_key.c
@@ -155,9 +155,10 @@ TMH_PG_lookup_token_family_key (void *cls,
       GNUNET_break (0);
       return GNUNET_DB_STATUS_HARD_ERROR;
     }
-  }
 
-  GNUNET_free (kind);
+    if (NULL != kind)
+      GNUNET_free (kind);
+  }
 
   return qs;
 }
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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