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
+1
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;