From: John Darrington Date: Sun, 4 Jul 2010 12:50:16 +0000 (+0200) Subject: Fix memory leak in tab_destroy X-Git-Tag: sav-api~162 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9bbff915873cc3f79236ade4f6ed4bde82af09c3;p=pspp Fix memory leak in tab_destroy --- diff --git a/src/output/tab.c b/src/output/tab.c index f6b4886b1f..e4ff158ccd 100644 --- a/src/output/tab.c +++ b/src/output/tab.c @@ -709,6 +709,8 @@ static void tab_destroy (struct table *table) { struct tab_table *t = tab_cast (table); + free (t->title); + t->title = NULL; pool_destroy (t->container); }