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

# XGameSaveCloseUpdate

> 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).</Note>

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](/reference/system/xgamesave/functions/xgamesavecreateupdate) 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](/reference/system/xgamesave/xgamesave_members)\
[XGameSaveCreateUpdate](/reference/system/xgamesave/functions/xgamesavecreateupdate)\
[Debugging Game Saves](/build/core-features/common/game-save/game-saves-debugging)


## Related topics

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