NetworkManager/clients/tui
Thomas Haller 0a011690c4
libnmt-newt: fix leak in nmt_newt_button_build_component()
Found by Coverity:

  Error: RESOURCE_LEAK (CWE-772): [#def274] [important]
  NetworkManager-1.31.3/src/libnmt-newt/nmt-newt-button.c:118: alloc_fn: Storage is returned from allocation function "g_strdup_printf".
  NetworkManager-1.31.3/src/libnmt-newt/nmt-newt-button.c:118: var_assign: Assigning: "label" = storage returned from "g_strdup_printf(" <%s>", priv->label)".
  NetworkManager-1.31.3/src/libnmt-newt/nmt-newt-button.c:119: noescape: Resource "label" is not freed or pointed-to in "nmt_newt_locale_from_utf8".
  NetworkManager-1.31.3/src/libnmt-newt/nmt-newt-button.c:125: leaked_storage: Variable "label" going out of scope leaks the storage it points to.
  #  123|       }
  #  124|
  #  125|->     return co;
  #  126|   }
  #  127|

Fixes: 3bda3fb60c ('nmtui: initial import of nmtui')
(cherry picked from commit 853f411567)
2021-06-04 21:21:52 +02:00
..
newt libnmt-newt: fix leak in nmt_newt_button_build_component() 2021-06-04 21:21:52 +02:00
meson.build all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nm-editor-bindings.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nm-editor-bindings.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nm-editor-utils.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nm-editor-utils.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-address-list.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-address-list.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-connect-connection-list.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-connect-connection-list.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-device-entry.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-device-entry.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-edit-connection-list.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-edit-connection-list.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-editor-grid.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-editor-grid.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-editor-page-device.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-editor-page-device.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-editor-page.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-editor-page.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-editor-section.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-editor-section.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-editor.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-editor.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-ip-entry.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-ip-entry.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-mac-entry.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-mac-entry.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-mtu-entry.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-mtu-entry.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-bond.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-bond.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-bridge-port.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-bridge-port.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-bridge.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-bridge.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-dsl.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-dsl.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-ethernet.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-ethernet.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-infiniband.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-infiniband.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-ip-tunnel.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-ip-tunnel.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-ip4.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-ip4.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-ip6.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-ip6.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-ppp.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-ppp.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-team-port.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-team-port.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-team.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-team.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-vlan.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-vlan.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-page-wifi.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-page-wifi.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-password-dialog.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-password-dialog.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-password-fields.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-password-fields.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-route-editor.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-route-editor.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-route-entry.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-route-entry.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-route-table.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-route-table.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-slave-list.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-slave-list.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-utils.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-utils.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmt-widget-list.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmt-widget-list.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmtui-connect.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmtui-connect.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmtui-edit.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmtui-edit.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmtui-hostname.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmtui-hostname.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00
nmtui.c all: add "libnm/nm-default-client.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nmtui.h all: update deprecated SPDX license identifiers 2021-01-05 09:46:21 +01:00