changeset 33277:16dcb1b753eb

Free playtree params.
author reimar
date Wed, 04 May 2011 20:27:38 +0000
parents e7f4c0ae303d
children 679b4e6d506c
files playtree.c
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/playtree.c	Wed May 04 20:13:25 2011 +0000
+++ b/playtree.c	Wed May 04 20:27:38 2011 +0000
@@ -68,7 +68,14 @@
   for(iter = pt->child ; iter != NULL ; iter = iter->next)
     iter->parent = NULL;
 
-  //free(pt->params);
+  if (pt->params) {
+    int i;
+    for(i = 0 ; pt->params[i].name != NULL ; i++) {
+      free(pt->params[i].name);
+      free(pt->params[i].value);
+    }
+    free(pt->params);
+  }
   if(pt->files) {
     int i;
     for(i = 0 ; pt->files[i] != NULL ; i++)