ifcfg-rh: fix memory leak reading infiniband setting

(cherry picked from commit c045267837)
This commit is contained in:
Beniamino Galvani 2019-07-04 11:51:30 +02:00
parent 5ca888d693
commit 4150dd8c43

View file

@ -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);