HomeFreeBSD

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

Description

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

Details

Provenance
jhbAuthored on Dec 5 2022, 12:31 AM
Reviewer
brooks
Differential Revision
D37540: rpcgen: Don't free() a pointer after realloc().
Parents
rG8dd8d56d9576: posixshm_test: Fix sign mismatches in ?: results.
Branches
Unknown
Tags
Unknown