diff options
Diffstat (limited to 'src/vmspawn/vmspawn.c')
-rw-r--r-- | src/vmspawn/vmspawn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c index 00166b2f7a..7a30912099 100644 --- a/src/vmspawn/vmspawn.c +++ b/src/vmspawn/vmspawn.c @@ -141,9 +141,9 @@ static int parse_argv(int argc, char *argv[]) { break; case ARG_QEMU_SMP: - arg_qemu_smp = strdup(optarg); - if (!arg_qemu_smp) - return log_oom(); + r = free_and_strdup_warn(&arg_qemu_smp, optarg); + if (r < 0) + return r; break; case ARG_QEMU_MEM: |