-/* $OpenBSD: efi_installboot.c,v 1.6 2022/09/14 16:43:00 kn Exp $ */
+/* $OpenBSD: efi_installboot.c,v 1.7 2022/11/06 12:33:41 krw Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
rslt = snprintf(cmd, sizeof(cmd), newfsfmt, args.fspec);
if (rslt >= sizeof(cmd)) {
warnx("can't build newfs command");
+ free(args.fspec);
rslt = -1;
return rslt;
}
rslt = system(cmd);
if (rslt == -1) {
warn("system('%s') failed", cmd);
+ free(args.fspec);
return rslt;
}
}
+ free(args.fspec);
return 0;
}
-/* $OpenBSD: i386_installboot.c,v 1.43 2022/09/14 16:43:00 kn Exp $ */
+/* $OpenBSD: i386_installboot.c,v 1.44 2022/11/06 12:33:41 krw Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
rslt = snprintf(cmd, sizeof(cmd), newfsfmt, args.fspec);
if (rslt >= sizeof(cmd)) {
warnx("can't build newfs command");
+ free(args.fspec);
rslt = -1;
return rslt;
}
rslt = system(cmd);
if (rslt == -1) {
warn("system('%s') failed", cmd);
+ free(args.fspec);
return rslt;
}
}
+ free(args.fspec);
return 0;
}
-/* $OpenBSD: macppc_installboot.c,v 1.8 2022/09/14 16:43:00 kn Exp $ */
+/* $OpenBSD: macppc_installboot.c,v 1.9 2022/11/06 12:33:41 krw Exp $ */
/*
* Copyright (c) 2011 Joel Sing <jsing@openbsd.org>
rslt = snprintf(cmd, sizeof(cmd), newfsfmt, args.fspec);
if (rslt >= sizeof(cmd)) {
warnx("can't build newfs command");
+ free(args.fspec);
rslt = -1;
return rslt;
}
rslt = system(cmd);
if (rslt == -1) {
warn("system('%s') failed", cmd);
+ free(args.fspec);
return rslt;
}
}
+ free(args.fspec);
return 0;
}
-/* $OpenBSD: octeon_installboot.c,v 1.8 2022/09/27 11:42:16 kn Exp $ */
+/* $OpenBSD: octeon_installboot.c,v 1.9 2022/11/06 12:33:41 krw Exp $ */
/*
* Copyright (c) 2011 Joel Sing <jsing@openbsd.org>
rslt = snprintf(cmd, sizeof(cmd), newfsfmt, args.fspec);
if (rslt >= sizeof(cmd)) {
warnx("can't build newfs command");
+ free(args.fspec);
rslt = -1;
return rslt;
}
rslt = system(cmd);
if (rslt == -1) {
warn("system('%s') failed", cmd);
+ free(args.fspec);
return rslt;
}
}
+ free(args.fspec);
return 0;
}
-/* $OpenBSD: powerpc64_installboot.c,v 1.7 2022/09/27 11:31:46 kn Exp $ */
+/* $OpenBSD: powerpc64_installboot.c,v 1.8 2022/11/06 12:33:41 krw Exp $ */
/*
* Copyright (c) 2011 Joel Sing <jsing@openbsd.org>
rslt = snprintf(cmd, sizeof(cmd), newfsfmt, args.fspec);
if (rslt >= sizeof(cmd)) {
warnx("can't build newfs command");
+ free(args.fspec);
rslt = -1;
return rslt;
}
rslt = system(cmd);
if (rslt == -1) {
warn("system('%s') failed", cmd);
+ free(args.fspec);
return rslt;
}
}
+ free(args.fspec);
return 0;
}