fix bug: solve the problem of shm memroy leak in cookie posioning

Signed-off-by: jason <liu_yt@neusoft.com>