fix bug of test_win32 of lua - free resource by allocate