Update weak_classdump.cy

add temporary variable for better memory performance