]> git.ipfire.org Git - thirdparty/kmod.git/commit
Add TAKE_PTR()
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Sun, 1 Dec 2024 00:49:00 +0000 (18:49 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 6 Dec 2024 20:59:10 +0000 (12:59 -0800)
commit1c8fae2f778406457a3b106238fccfd789ebfed7
tree70582b86afc95e7ef0b6daabf6174fe48e29aef6
parent38641ee477cec85710807043a71967a0d9685669
Add TAKE_PTR()

Similar to macro in systemd codebase: add a macro that documents we are
"leaking" a pointer that would otherwise be cleaned up by the cleanup
attribute.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/264
libkmod/libkmod-config.c
libkmod/libkmod-file-zlib.c
libkmod/libkmod-module.c
shared/util.c
shared/util.h