From e83caaa1ce76a7d1801b016beafb88a1a564dd73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ttler?= Date: Fri, 26 Apr 2024 09:29:51 +0200 Subject: fix memory management in case of error --- src/backenddb/pg_lookup_token_family_key.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/backenddb/pg_lookup_token_family_key.c') 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 -- cgit v1.2.3