src/hg/hgTables/mainPage.c 1.143

1.143 2009/05/05 22:39:41 tdreszer
Free memory after restrictionDate lookup
Index: src/hg/hgTables/mainPage.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTables/mainPage.c,v
retrieving revision 1.142
retrieving revision 1.143
diff -b -B -U 4 -r1.142 -r1.143
--- src/hg/hgTables/mainPage.c	10 Apr 2009 21:33:30 -0000	1.142
+++ src/hg/hgTables/mainPage.c	5 May 2009 22:39:41 -0000	1.143
@@ -392,10 +392,13 @@
     }
 hPrintf("</SELECT>\n");
 char *restrictDate = encodeRestrictionDateDisplay(selTdb);
 if (restrictDate)
+    {
     hPrintf("<A HREF=\'%s\' TARGET=BLANK>restricted until:</A>&nbsp;%s",
                 ENCODE_DATA_RELEASE_POLICY, restrictDate);
+    freeMem(restrictDate);
+    }
 return selTable;
 }