Fix memory violation in subgraph validation

Fix: 149871944
Test: m
Change-Id: I6070534441d6f957f158a3c95b8e7d011fe6ae9f
4 files changed