summaryrefslogtreecommitdiff
path: root/src/tools/irm/irm_unbind.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2026-02-21 12:20:51 +0100
committerSander Vrijders <sander@ouroboros.rocks>2026-02-22 16:06:49 +0100
commit5d930fed0cff09d7fc22c2b1152506c334a08f7a (patch)
treecfa851ad2a76f9f63a977f89c914c8b59706b2a9 /src/tools/irm/irm_unbind.c
parent83533c990793b18628066196916851e6b34792df (diff)
downloadouroboros-5d930fed0cff09d7fc22c2b1152506c334a08f7a.tar.gz
ouroboros-5d930fed0cff09d7fc22c2b1152506c334a08f7a.zip
irmd: Fix memleak in reg tests
Call freebuf(pbuf) before returning from each test thread function. Since clrbuf zeroes pbuf.data to NULL on the success path, free(NULL) is safe. On the failure path of reg_respond_*, it now properly frees the still-allocated data. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/tools/irm/irm_unbind.c')
0 files changed, 0 insertions, 0 deletions