mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 23:38:39 +00:00
lldp: fix double free
'k' is marked as _cleanup_free_ so reset it to NULL if we free it explicitly.
This commit is contained in:
@@ -484,6 +484,7 @@ int sd_lldp_save(sd_lldp *lldp, const char *lldp_file) {
|
||||
t = strappend(s, buf);
|
||||
|
||||
free(k);
|
||||
k = NULL;
|
||||
} else {
|
||||
|
||||
mac = port_id;
|
||||
|
||||
Reference in New Issue
Block a user