chiark / gitweb /
sd-pppoe: fix some leaks
authorTom Gundersen <teg@jklm.no>
Sat, 1 Nov 2014 22:53:25 +0000 (23:53 +0100)
committerTom Gundersen <teg@jklm.no>
Sat, 1 Nov 2014 22:53:25 +0000 (23:53 +0100)
src/libsystemd-network/sd-pppoe.c

index 17b2d6d..6f33541 100644 (file)
@@ -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);