* free the subjects of the tabs
authorWilfried Göesgens <willi@citadel.org>
Sun, 21 Feb 2010 20:03:27 +0000 (20:03 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 21 Feb 2010 20:03:27 +0000 (20:03 +0000)
webcit/subst.c

index 4f43197cb046c07ee7f78dab91d8ae0c23a8a5a2..6bb18019771959b4374aa1e6de6e055fe70492b8 100644 (file)
@@ -2599,6 +2599,8 @@ void tmpl_do_tabbed(StrBuf *Target, WCTemplputParams *TP)
                DoTemplate(TKEY(i * 2 + 1), Target, TP);
                StrEndTab(Target, i, nTabs);
        }
+       for (i = 0; i < ntabs; i++) 
+               FreeStrBuf(&TabNames[i]);
 }