From: hadaq Date: Fri, 25 Jun 2010 13:52:54 +0000 (+0000) Subject: bug fix wm command (file open error) X-Git-Tag: v6.0~253 X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=5b5e24a893d2f253bc55083f15c4d0e7b10c6894;p=trbnettools.git bug fix wm command (file open error) --- diff --git a/libtrbnet/trbcmd.c b/libtrbnet/trbcmd.c index cffd35a..c973a35 100644 --- a/libtrbnet/trbcmd.c +++ b/libtrbnet/trbcmd.c @@ -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) {