target-arm: fix incorrect temporary variable freeing