summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/sd-pppoe.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-11-01 23:53:25 +0100
committerTom Gundersen <teg@jklm.no>2014-11-01 23:53:25 +0100
commit8cd80c94a5780651f6e7a4a97a3e3111dbd88682 (patch)
tree2c69195f5804600e76bf8950ac6ef08839591505 /src/libsystemd-network/sd-pppoe.c
parentcda391c3f9c85578f4a4fe81d4aeb785a785000a (diff)
sd-pppoe: fix some leaks
Diffstat (limited to 'src/libsystemd-network/sd-pppoe.c')
-rw-r--r--src/libsystemd-network/sd-pppoe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd-network/sd-pppoe.c b/src/libsystemd-network/sd-pppoe.c
index 17b2d6dab6..6f33541504 100644
--- a/src/libsystemd-network/sd-pppoe.c
+++ b/src/libsystemd-network/sd-pppoe.c
@@ -216,6 +216,8 @@ sd_pppoe *sd_pppoe_ref(sd_pppoe *ppp) {
sd_pppoe *sd_pppoe_unref(sd_pppoe *ppp) {
if (ppp && REFCNT_DEC(ppp->n_ref) <= 0) {
pppoe_tags_clear(&ppp->tags);
+ free(ppp->ifname);
+ free(ppp->service_name);
sd_pppoe_stop(ppp);
sd_pppoe_detach_event(ppp);