macros: add nm_auto_free macro
authorThomas Haller <thaller@redhat.com>
Fri, 12 Feb 2016 14:43:30 +0000 (15:43 +0100)
committerThomas Haller <thaller@redhat.com>
Tue, 16 Feb 2016 13:13:25 +0000 (14:13 +0100)
commitc66ee23f73a0b8e4056abf4a2a463ae48346f249
tree0bf273af7eb4874365f0bd84a7b4db7a8dc747ea
parentad45d232fee8157baadb799f3867ddec95e2ef91
macros: add nm_auto_free macro

Similar to gs_free to cleanup pointers with free(). Note that
g_free() and free() cannot be used interchangably.
shared/nm-default.h
shared/nm-macros-internal.h