fix dvr mem leak, free msg when not use it.