mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 05:18:23 +02:00
ifcfg-rh: fix memory leak reading infiniband setting
(cherry picked from commit c045267837)
This commit is contained in:
parent
5ca888d693
commit
4150dd8c43
1 changed files with 1 additions and 1 deletions
|
|
@ -4760,8 +4760,8 @@ make_infiniband_setting (shvarFile *ifcfg,
|
|||
g_object_set (s_infiniband, NM_SETTING_INFINIBAND_TRANSPORT_MODE, "datagram", NULL);
|
||||
|
||||
if (svGetValueBoolean (ifcfg, "PKEY", FALSE)) {
|
||||
gs_free char *parent = NULL;
|
||||
int p_key;
|
||||
char *parent;
|
||||
|
||||
if (!parse_infiniband_p_key (ifcfg, &p_key, &parent, error)) {
|
||||
g_object_unref (s_infiniband);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue