3b0038f6d0c32e82cca36ce1ca954419b5ed718b max Tue Feb 28 11:10:40 2012 -0800 added a sqlReeResult after hiram code review diff --git src/hg/hgc/t2g.c src/hg/hgc/t2g.c index 8e596d3..1e2a6e3 100644 --- src/hg/hgc/t2g.c +++ src/hg/hgc/t2g.c @@ -160,30 +160,31 @@ char* url = row[1]; char* title = row[2]; char* authors = row[3]; char* citation = row[4]; char* snippets = row[5]; printf("<A HREF=\"%s\">%s</A> ", url, title); printf("<SMALL>%s</SMALL>; ", authors); printf("<SMALL>%s</SMALL><BR>", citation); if (t2gDebug) printf("articleId=%s", articleId); printf("<I>%s</I><P>", snippets); printf("<HR>"); } freeMem(sectionList); +sqlFreeResult(&sr); } static char* printArticleInfo(struct sqlConnection *conn, char* item) /* Header with information about paper, return documentId */ { char query[512]; safef(query, sizeof(query), "SELECT articleId, url, title, authors, citation, abstract FROM %s WHERE displayId='%s'", t2gArticleTable, item); struct sqlResult *sr = sqlGetResult(conn, query); char **row; char *docId=0; if ((row = sqlNextRow(sr)) != NULL) { char* abstract = row[5];