NetworkManager/src/n-dhcp4
Íñigo Huguet 9edfc0438c n-dhcp4: fix resource leaks
The function n_dhcp4_c_connection_send_request does not release or take
ownership of its request argument. Because of that, setting it to NULL
in the caller prevents the auto-cleanup of the variable to be executed,
causing a resource leak. Fix it.

Fixes: e23b3c9c3a ('Squashed 'shared/n-dhcp4/' content from commit fb1d43449')
Fixes: 243cc433fb ('n-dhcp4: add new client probe function to send RELEASE message')
2025-04-07 14:15:09 +00:00
..
.github/workflows build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
src n-dhcp4: fix resource leaks 2025-04-07 14:15:09 +00:00
subprojects modules: patch meson subprojects to use local dependencies 2022-07-25 10:27:33 +02:00
.editorconfig build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
.gitmodules build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
AUTHORS build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
meson.build modules: patch meson subprojects to use local dependencies 2022-07-25 10:27:33 +02:00
NEWS.md build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
README.md build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00

n-dhcp4

Dynamic Host Configuration Protocol for IPv4

The n-dhcp4 project implements the IPv4 Dynamic Host Configuration Protocol as defined in RFC-2132+.

Project

Requirements

The requirements for this project are:

  • Linux kernel >= 3.19
  • libc (e.g., glibc >= 2.16)

At build-time, the following software is required:

  • meson >= 0.41
  • pkg-config >= 0.29

Build

The meson build-system is used for this project. Contact upstream documentation for detailed help. In most situations the following commands are sufficient to build and install from source:

mkdir build
cd build
meson setup ..
ninja
meson test
ninja install

No custom configuration options are available.

Repository:

License:

  • Apache-2.0 OR LGPL-2.1-or-later
  • See AUTHORS file for details.