src/hg/hgGene/microarray.c 1.17
1.17 2009/09/27 04:45:41 kent
Fixed bug in memory management Andy recently introduced where the geneId was freed after the microarray section leaving subsequent sections with garbage geneId.
Index: src/hg/hgGene/microarray.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgGene/microarray.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -b -B -U 4 -r1.16 -r1.17
--- src/hg/hgGene/microarray.c 25 Sep 2009 18:26:16 -0000 1.16
+++ src/hg/hgGene/microarray.c 27 Sep 2009 04:45:41 -0000 1.17
@@ -101,9 +101,9 @@
if ((!sameWord(lookup, "null") && !sqlTableExists(conn, lookup))
|| !sqlTableExists(conn, data) || !sqlTableExists(conn, exp))
return NULL;
if (sameWord(lookup, "null"))
- probe = geneId;
+ probe = cloneString(geneId);
else
probe = expProbe(conn, lookup, geneId);
return checkProbeData(conn, data, probe);
}