Module Name:    src
Committed By:   bouyer
Date:           Sun Nov 26 12:29:49 UTC 2023

Modified Files:
        src/common/lib/libprop [netbsd-10]: prop_string.c

Log Message:
Pull up following revision(s) (requested by thorpej in ticket #467):
        common/lib/libprop/prop_string.c: revision 1.18
In _prop_string_instantiate(), when we de-dup a non-MUTABLE string, make
sure we free the provided string buffer if NOCOPY is not set.  Fixes
a memory leak reported by M. Boerschig.
While we're at it, also change _prop_string_instantiate() to free the
provided string buffer in the not-NOCOPY case when string object allocation
fails (this was previously handled by _prop_string_instantiate()'s
PR lib/57699

To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.17.2.1 src/common/lib/libprop/prop_string.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Reply via email to