fix memory bug and free the buffer when finished
-rw-r--r-- 3 .gitignore
-rw-r--r-- 83 Makefile
-rw-r--r-- 1542 bf.c