X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fplugins%2Fpppol2tp%2Fopenl2tp.c;h=0f9db6d5ecc34e268206d1b55d4205881172b0fa;hp=9643b965792b0e8188e2de76cda18e30971d16f7;hb=2883dd07101bf851e2ea368f0c04c91aea85cff2;hpb=150c20025892ead49b29a00d8ac3849109b0a395 diff --git a/pppd/plugins/pppol2tp/openl2tp.c b/pppd/plugins/pppol2tp/openl2tp.c index 9643b96..0f9db6d 100644 --- a/pppd/plugins/pppol2tp/openl2tp.c +++ b/pppd/plugins/pppol2tp/openl2tp.c @@ -19,6 +19,10 @@ /* pppd plugin for interfacing to openl2tpd */ +#ifdef HAVE_CONFIG_H +#include +#endif + #include #include #include @@ -246,6 +250,9 @@ out: (*old_pppol2tp_ip_updown_hook)(tunnel_id, session_id, up); } + if (user_name != NULL) + free(user_name); + return; }