diff options
author | Christian Blättler <blatc2@bfh.ch> | 2024-04-26 09:29:51 +0200 |
---|---|---|
committer | Christian Blättler <blatc2@bfh.ch> | 2024-04-26 09:29:51 +0200 |
commit | e83caaa1ce76a7d1801b016beafb88a1a564dd73 (patch) | |
tree | 8aa17f8815fca0943822a584c4c311eb7b0502fa /src/backenddb/pg_lookup_token_family_key.c | |
parent | ae672cad398d8c9229677c372b333c99df03e6f5 (diff) |
fix memory management in case of error
Diffstat (limited to 'src/backenddb/pg_lookup_token_family_key.c')
-rw-r--r-- | src/backenddb/pg_lookup_token_family_key.c | 5 |
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 |