NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/57699 CVS commit: src/common/lib/libprop



The following reply was made to PR lib/57699; it has been noted by GNATS.

From: "Jason R Thorpe" <thorpej%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/57699 CVS commit: src/common/lib/libprop
Date: Fri, 17 Nov 2023 21:29:33 +0000

 Module Name:	src
 Committed By:	thorpej
 Date:		Fri Nov 17 21:29:33 UTC 2023
 
 Modified Files:
 	src/common/lib/libprop: prop_string.c
 
 Log Message:
 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
 callers).
 
 PR lib/57699
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.17 -r1.18 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.
 


Home | Main Index | Thread Index | Old Index