[darwinbuild-changes] [108] trunk/darwinxref/cfutils.c
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 4 01:46:26 PDT 2006
Revision: 108
http://trac.macosforge.org/projects/darwinbuild/changeset/108
Author: kevin
Date: 2006-10-04 01:46:26 -0700 (Wed, 04 Oct 2006)
Log Message:
-----------
- fixed memory leak (toby)
Modified Paths:
--------------
trunk/darwinxref/cfutils.c
Modified: trunk/darwinxref/cfutils.c
===================================================================
--- trunk/darwinxref/cfutils.c 2005-07-28 15:18:43 UTC (rev 107)
+++ trunk/darwinxref/cfutils.c 2006-10-04 08:46:26 UTC (rev 108)
@@ -88,6 +88,7 @@
if (data) {
CFStringRef str = NULL;
result = CFPropertyListCreateFromXMLData(NULL, data, kCFPropertyListMutableContainers, &str);
+ CFRelease(data);
if (result == NULL) {
perror_cfstr(str);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/cf276e33/attachment.html
More information about the darwinbuild-changes
mailing list