reInit and fix memory leakage for acpkt global variable