rpcgen: Don't free() a pointer after realloc().

A successful realloc() already frees the old pointer.

Reported by:	GCC -Wuse-after-free
Reviewed by:	brooks, imp, emaste
Differential Revision:	https://reviews.freebsd.org/D37540
This commit is contained in:
John Baldwin 2022-12-04 16:31:35 -08:00
parent 8dd8d56d95
commit f0b58b1901

View File

@ -925,7 +925,6 @@ moreargs(void)
warnx("unable to allocate arglist");
crash();
}
free(arglist);
arglist = newarglist;
}