shared: add nm_auto_vfree macro

System Internals / NetworkManager - Thomas Haller [redhat.com] - 11 July 2018 14:16 EDT

This really is the same as gs_strfreev / g_strfreev(). However, the difference is, that the former has the notion of freeing strv arrays (char **), while this in general frees an array of pointers. Implementation-wise, they are the same.

634b2d1ce shared: add nm_auto_vfree macro
shared/nm-utils/nm-macros-internal.h | 17 +++++++++++++++++
1 file changed, 17 insertions(+)

Upstream: cgit.freedesktop.org


  • Share