chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
localectl: fix localectl set-x11-keymap syntax description
[elogind.git]
/
src
/
libsystemd-network
/
sd-pppoe.c
diff --git
a/src/libsystemd-network/sd-pppoe.c
b/src/libsystemd-network/sd-pppoe.c
index 17b2d6dab68f7b0e3d52876764fc6ddb84309fac..21ddaebdd2943388e80186da88feaa6d12021d0b 100644
(file)
--- a/
src/libsystemd-network/sd-pppoe.c
+++ b/
src/libsystemd-network/sd-pppoe.c
@@
-22,6
+22,7
@@
/* See RFC 2516 */
#include <sys/ioctl.h>
/* See RFC 2516 */
#include <sys/ioctl.h>
+#include <linux/ppp_defs.h>
#include <linux/ppp-ioctl.h>
#include <net/if.h>
#include <netinet/in.h>
#include <linux/ppp-ioctl.h>
#include <net/if.h>
#include <netinet/in.h>
@@
-216,6
+217,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);
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);
sd_pppoe_stop(ppp);
sd_pppoe_detach_event(ppp);