---
name: "odbx_lo_close"
section: "3"
platform: "linux"
package: "opendbx"
version: "1.4.6-13"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/odbx_lo_close"
---

# odbx\_lo\_close(3)

Closes a large object reference

## NAME

odbx\_lo\_close - Closes a large object reference

## SYNOPSIS

```
FC#include <opendbx/api.h>F[0]
```

FCint **odbx\_lo\_close**F\[0\]  FC(odbx\_lo\_t\* *lo*);F\[0\]

## DESCRIPTION

This function commits any changes made by FC**odbx\_lo\_write**F\[0\]() and closes the open large object handle. To ommit calling this function on open large object handles will result in memory leaks as the data structure and dependent memory aren't freed.

The FCloF\[0\] parameter has to be the large object handle created and returned by FC**odbx\_lo\_open**F\[0\]() via its second parameter. It becomes invalid after it was supplied to FC**odbx\_lo\_close**F\[0\]() and this function will return an error in this case.

## RETURN VALUE

FC**odbx\_lo\_close**F\[0\]() returns FCODBX\_ERR\_SUCCESSF\[0\], or an error code whose value is less than zero if one of the operations couldn't be completed successfully. Possible error codes are listed in the error section and they can be feed to FC**odbx\_error**F\[0\]() and FC**odbx\_error\_type**F\[0\]() to get further details.

## ERRORS

- \-FCODBX\_ERR\_BACKENDF\[0\]

  The native database library couldn't close the large object successfully

- \-FCODBX\_ERR\_HANDLEF\[0\]

  FCloF\[0\] is NULL or the supplied large object handle is invalid

## SEE ALSO

FC**odbx\_lo\_open**F\[0\]()
