diff --git a/src/core/bpf-lsm.c b/src/core/bpf-lsm.c index ed35cad91d..8af2da0288 100644 --- a/src/core/bpf-lsm.c +++ b/src/core/bpf-lsm.c @@ -52,7 +52,7 @@ static bool bpf_can_link_lsm_program(struct bpf_program *prog) { } static int prepare_restrict_fs_bpf(struct restrict_fs_bpf **ret_obj) { - struct restrict_fs_bpf *obj = 0; + _cleanup_(restrict_fs_bpf_freep) struct restrict_fs_bpf *obj = NULL; _cleanup_close_ int inner_map_fd = -1; int r;