diff regexParser/main.cc @ 235:4aab1e93a971

fix condition grepWalk.cc
author Masataka Kohagura <kohagura@cr.ie.u-ryukyu.ac.jp>
date Tue, 19 Jan 2016 17:16:37 +0900
parents 1a34e702776a
children 9493800265a8
line wrap: on
line diff
--- a/regexParser/main.cc	Tue Jan 19 14:52:33 2016 +0900
+++ b/regexParser/main.cc	Tue Jan 19 17:16:37 2016 +0900
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <unistd.h>
 #include "regexParser.h"
 #include "subsetConstruction.h"
 #include "node.h"
@@ -58,6 +59,7 @@
         st_mmap_t st_mmap = createSt_mmap(filename,fd);
         Buffer buff = createBuffer(st_mmap);
         grepWalk(tgv.tg,buff);
+        close(fd);
     }
     return 0;
 }