rax.c: In function 'raxRemove':
rax.c:1064:28: error: pointer 'h' may be used after 'free' [-Werror=use-after-free]
1064 | raxNode *new = raxRemoveChild(h,child);
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from rax.c:45:
rax_malloc.h:44:18: note: call to 'free' here
44 | #define rax_free free
rax.c:1054:13: note: in expansion of macro 'rax_free'
1054 | rax_free(child);
| ^~~~~~~~
Description
During build of librdb.
Which build are we running (if any)
upstream c8e588808075ed02a92eb81cd1507df9cc2753ce + ossomain
Upstream issues/PRs
github.com/sonic-net/sonic-buildimage/issues 20757
Fix