Skip to content

Commit

Permalink
Silence use-after-free warning.
Browse files Browse the repository at this point in the history
This fixes the issue described in laurikari#100.
  • Loading branch information
dag-erling committed Jul 25, 2024
1 parent 946d695 commit 9f40449
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/xmalloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ hash_table_add(hashTable *tbl, void *ptr, size_t bytes,
}

static void
#if defined(__GNUC__) && __GNUC__ >= 10
__attribute__((access(none, 2)))
#endif
hash_table_del(hashTable *tbl, void *ptr)
{
int i;
Expand Down

0 comments on commit 9f40449

Please sign in to comment.