---
name: "modbus_free"
section: "3"
platform: "linux"
package: "libmodbus-dev"
version: "3.1.6-2.1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/modbus_free"
---

# modbus\_free(3)

free a libmodbus context

## NAME

modbus\_free - free a libmodbus context

## SYNOPSIS

**void modbus\_free(modbus\_t \****ctx***);**

## DESCRIPTION

The **modbus\_free()** function shall free an allocated modbus\_t structure.

## RETURN VALUE

There is no return values.

## SEE ALSO

**libmodbus**(3)

## AUTHORS

The libmodbus documentation was written by Stéphane Raimbault \<stephane.raimbault@gmail.com\>
