BUG: SyncRecord mismatched delete[].

Detected by valgrind.