> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameSaveCloseUpdate

> XGameSaveCloseUpdate

Closes an XGameSaveUpdate.

## Syntax

```cpp theme={null}
void XGameSaveCloseUpdate(  
         XGameSaveUpdateHandle context  
)  
```

### Parameters

*context*   \_In\_\
Type: XGameSaveUpdateHandle

Handle to the XGameSaveUpdate to be closed.

### Return value

Type: void

Function result.

## Remarks

> [!NOTE]
>
> This function isn't safe to call on a time-sensitive thread. For more information, see [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).

Call this function when you have finished using an XGameSaveUpdateHandle. If you do not close the context handle for a game save update you will cause a memory leak. Every call made to [XGameSaveCreateUpdate](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavecreateupdate.md) should have a matching call to **XGameSaveCloseUpdate**.

## Requirements

**Header:** XGameSave.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## Conceptual documentation

* [Time-sensitive threads](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## See also

[XGameSave](https://docs.xbox.com/reference/system/xgamesave/xgamesave_members.md)\
[XGameSaveCreateUpdate](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavecreateupdate.md)\
[Debugging Game Saves](https://docs.xbox.com/build/core-features/common/game-save/game-saves-debugging.md)


## Related topics

- [XGameSaveCreateUpdate](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavecreateupdate.md)
- [XGameSaveSubmitUpdate](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavesubmitupdate.md)
- [XGameSaveSubmitUpdateAsync](https://docs.xbox.com/reference/system/xgamesave/functions/xgamesavesubmitupdateasync.md)
- [XGameSave API overview](https://docs.xbox.com/build/core-features/common/game-save/xgamesave.md)
- [XGameSave (API contents)](https://docs.xbox.com/reference/system/xgamesave/xgamesave_members.md)
