1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03: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:
David Herrmann 2014-12-31 15:58:27 +01:00
parent fbee1d8587
commit 580e55da11

View File

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