This is the work version
ceScanBranch1.c still not fix the memory problem