Updated leak detection to parse real protocol string.