measure: fix oom check

Pointed out in review.

(cherry picked from commit 9a3a861ff8)
(cherry picked from commit c078c554a6)
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-04-23 11:09:11 +02:00
committed by Luca Boccassi
parent 393a560c21
commit 0b9de73f9f

View File

@@ -1095,10 +1095,8 @@ static int verb_status(int argc, char *argv[], void *userdata) {
return log_error_errno(r, "Failed to decode PCR value '%s': %m", s);
if (!sd_json_format_enabled(arg_json_format_flags)) {
_cleanup_free_ char *f = NULL;
f = hexmem(h, l);
if (!h)
_cleanup_free_ char *f = hexmem(h, l);
if (!f)
return log_oom();
if (bank == arg_banks) {