0842d0243de1cbe7e9d579e3792b92e3b6a552ab kate Mon Aug 3 23:16:48 2015 -0700 Fix a few bugs - connection handling, bin field in genePred, more color handling - introduced while messing with schemas (to extend features and improve perf). refs #15645 diff --git src/hg/lib/gtexInfo.c src/hg/lib/gtexInfo.c index 317729b..8715d7b 100644 --- src/hg/lib/gtexInfo.c +++ src/hg/lib/gtexInfo.c @@ -187,18 +187,20 @@ ")\n", table); sqlRemakeTable(conn, table, query); } double gtexMaxMedianScore(char *version) /* Retrieve max median score for latest (or named) version */ { char query[1024]; struct sqlConnection *conn = hAllocConn("hgFixed"); if (!conn) return 0; // TODO: trackDB setting for this if (!version) version = "V4"; sqlSafef(query, sizeof query, "select maxMedianScore from gtexInfo where version='%s'", version); -return sqlQuickDouble(conn, query); +double score = sqlQuickDouble(conn, query); +hFreeConn(&conn); +return score; }