projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbee1d8
)
lldp: fix double free
author
David Herrmann
<dh.herrmann@gmail.com>
Wed, 31 Dec 2014 14:58:27 +0000
(15:58 +0100)
committer
David Herrmann
<dh.herrmann@gmail.com>
Wed, 31 Dec 2014 14:58:27 +0000
(15:58 +0100)
'k' is marked as _cleanup_free_ so reset it to NULL if we free it
explicitly.
src/libsystemd-network/sd-lldp.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-network/sd-lldp.c
b/src/libsystemd-network/sd-lldp.c
index
08cd092
..
74ea810
100644
(file)
--- a/
src/libsystemd-network/sd-lldp.c
+++ b/
src/libsystemd-network/sd-lldp.c
@@
-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;