b947e46494d0e52103ffff3b21e174d100f6ffa5
hiram
  Sat Aug 8 06:56:19 2026 -0700
fix leak in twoBitFree() as found by claude no redmine

diff --git src/lib/twoBit.c src/lib/twoBit.c
index 28d38cb726f..93407ecd2a5 100644
--- src/lib/twoBit.c
+++ src/lib/twoBit.c
@@ -692,30 +692,31 @@
 return twoBitFromOpenFile(tbf);
 }
 
 
 void twoBitFree(struct twoBit **pTwoBit)
 /* Free up a two bit structure. */
 {
 struct twoBit *twoBit = *pTwoBit;
 if (twoBit != NULL)
     {
     freeMem(twoBit->nStarts);
     freeMem(twoBit->nSizes);
     freeMem(twoBit->maskStarts);
     freeMem(twoBit->maskSizes);
     freeMem(twoBit->data);
+    freeMem(twoBit->name);
     freez(pTwoBit);
     }
 }
 
 void twoBitFreeList(struct twoBit **pList)
 /* Free a list of dynamically allocated twoBit's */
 {
 struct twoBit *el, *next;
 
 for (el = *pList; el != NULL; el = next)
     {
     next = el->next;
     twoBitFree(&el);
     }
 *pList = NULL;