[darwinbuild-changes] [287] trunk/darwinxref/DBDataStore.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 02:02:20 PDT 2006


Revision: 287
          http://trac.macosforge.org/projects/darwinbuild/changeset/287
Author:   kevin
Date:     2006-10-04 02:02:20 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
- fixed double free

Modified Paths:
--------------
    trunk/darwinxref/DBDataStore.c

Modified: trunk/darwinxref/DBDataStore.c
===================================================================
--- trunk/darwinxref/DBDataStore.c	2005-10-02 23:19:25 UTC (rev 286)
+++ trunk/darwinxref/DBDataStore.c	2006-10-04 09:02:20 UTC (rev 287)
@@ -277,7 +277,7 @@
 
 	CFMutableArrayRef projects = (CFMutableArrayRef)SQL_CFARRAY("SELECT DISTINCT project FROM properties WHERE build=%Q", origbuild);
 	
-	char* cbuild = origbuild;
+	char* cbuild = strdup(origbuild);
 	
 	// also include any build aliases for these projects
 	do {		

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/59fb57af/attachment-0001.html


More information about the darwinbuild-changes mailing list