diff -Naur xc/programs/Xserver/hw/kdrive/linux/ts.c xc.new/programs/Xserver/hw/kdrive/linux/ts.c
--- xc/programs/Xserver/hw/kdrive/linux/ts.c	Wed Nov 13 01:20:42 2002
+++ xc.new/programs/Xserver/hw/kdrive/linux/ts.c	Thu Apr 22 12:12:14 2004
@@ -199,6 +199,10 @@
 	{
 	    mi->driver = 0;
 	    mi->inputType = 0;
+	    if (mi->name != NULL) {
+		    free(mi->name);
+		    mi->name = NULL;
+	    }
 	}
     }
 }
diff -Naur xc/programs/Xserver/hw/kdrive/linux/tslib.c xc.new/programs/Xserver/hw/kdrive/linux/tslib.c
--- xc/programs/Xserver/hw/kdrive/linux/tslib.c	Tue Nov  5 08:28:06 2002
+++ xc.new/programs/Xserver/hw/kdrive/linux/tslib.c	Thu Apr 22 12:12:13 2004
@@ -175,6 +175,10 @@
 	    if(mi->driver) ts_close(tsDev);
 	    mi->driver = 0;
 	    mi->inputType = 0;
+	    if (mi->name != NULL) {
+		    free(mi->name);
+		    mi->name = NULL;
+	    }
 	}
     }
 }

