mirror of
https://github.com/systemd/systemd.git
synced 2026-08-13 17:08:14 +00:00
measure: fix oom check
Pointed out in review.
This commit is contained in:
@@ -1096,10 +1096,8 @@ static int verb_status(int argc, char *argv[], uintptr_t _data, 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) {
|
||||
|
||||
Reference in New Issue
Block a user