Fix compile warning, and free removed depinfo's
This commit is contained in:
parent
7406537363
commit
d7129163ce
@ -874,7 +874,7 @@ next:
|
|||||||
nosys[0] = 'n';
|
nosys[0] = 'n';
|
||||||
nosys[1] = 'o';
|
nosys[1] = 'o';
|
||||||
for (i = 0; i < len; i++)
|
for (i = 0; i < len; i++)
|
||||||
nosys[i + 2] = tolower (sys[i]);
|
nosys[i + 2] = (char) tolower ((int) sys[i]);
|
||||||
nosys[i + 2] = '\0';
|
nosys[i + 2] = '\0';
|
||||||
|
|
||||||
last_depinfo = NULL;
|
last_depinfo = NULL;
|
||||||
@ -897,6 +897,8 @@ next:
|
|||||||
for (dt = di->depends; dt; dt = dt->next)
|
for (dt = di->depends; dt; dt = dt->next)
|
||||||
rc_strlist_delete (&dt->services, depinfo->service);
|
rc_strlist_delete (&dt->services, depinfo->service);
|
||||||
}
|
}
|
||||||
|
depinfo->next = NULL;
|
||||||
|
rc_deptree_free (depinfo);
|
||||||
} else
|
} else
|
||||||
last_depinfo = depinfo;
|
last_depinfo = depinfo;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user