]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
bug fix wm command (file open error)
authorhadaq <hadaq>
Fri, 25 Jun 2010 13:52:54 +0000 (13:52 +0000)
committerhadaq <hadaq>
Fri, 25 Jun 2010 13:52:54 +0000 (13:52 +0000)
libtrbnet/trbcmd.c

index cffd35ae9ceea33300aaf0897a71e3197bfe90ea..c973a353236c796a60b686a7b6766d3a914c17db 100644 (file)
@@ -34,7 +34,7 @@
 
 static int hexMode = HEXMODE;
 
-static const char trbcmd_version[] = "$Revision: 2.52 $";
+static const char trbcmd_version[] = "$Revision: 2.53 $";
 
 #define BACKLOG 10
 static uint16_t tcp_port = 55555;
@@ -518,6 +518,7 @@ int start(int argc, char **argv)
           data[size++] = strtoul(line, NULL, hexMode == 1 ? 16 : 0);
         }
         free(line);
+        fclose(file);
 
         /* DEBUG Info */
         if (trb_debug > 0) {