From: jsg Date: Tue, 2 May 2023 13:02:51 +0000 (+0000) Subject: free the correct pointer. Missed in rev 1.16. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1e337eb1d71210ea4788b1e040a6b0e298df5c7f;p=openbsd free the correct pointer. Missed in rev 1.16. ok dv@ --- diff --git a/usr.sbin/vmctl/vmctl.c b/usr.sbin/vmctl/vmctl.c index 66b7d271896..9f323b677ea 100644 --- a/usr.sbin/vmctl/vmctl.c +++ b/usr.sbin/vmctl/vmctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vmctl.c,v 1.87 2023/04/28 19:46:41 dv Exp $ */ +/* $OpenBSD: vmctl.c,v 1.88 2023/05/02 13:02:51 jsg Exp $ */ /* * Copyright (c) 2014 Mike Larkin @@ -202,7 +202,7 @@ vm_start(uint32_t start_id, const char *name, size_t memsize, int nnics, imsg_compose(ibuf, IMSG_VMDOP_START_VM_REQUEST, 0, 0, vmc->vmc_kernel, vmc, sizeof(struct vmop_create_params)); - free(vcp); + free(vmc); return (0); }