aboutsummaryrefslogtreecommitdiff
path: root/src/backenddb
diff options
context:
space:
mode:
authorChristian Blättler <blatc2@bfh.ch>2024-04-26 09:29:51 +0200
committerChristian Blättler <blatc2@bfh.ch>2024-04-26 09:29:51 +0200
commite83caaa1ce76a7d1801b016beafb88a1a564dd73 (patch)
tree8aa17f8815fca0943822a584c4c311eb7b0502fa /src/backenddb
parentae672cad398d8c9229677c372b333c99df03e6f5 (diff)
fix memory management in case of error
Diffstat (limited to 'src/backenddb')
-rw-r--r--src/backenddb/pg_lookup_token_family_key.c5
1 files 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