diff options
Diffstat (limited to 'accel-pptpd')
-rw-r--r-- | accel-pptpd/ppp/ppp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/accel-pptpd/ppp/ppp.c b/accel-pptpd/ppp/ppp.c index 79c90a3..e37f658 100644 --- a/accel-pptpd/ppp/ppp.c +++ b/accel-pptpd/ppp/ppp.c @@ -66,9 +66,10 @@ void __export ppp_init(struct ppp_t *ppp) static void _free_ppp(struct ppp_t *ppp) { - _free(ppp->chan_buf); - _free(ppp->unit_buf); - + if (ppp->chan_buf) + free(ppp->chan_buf); + if (ppp->unit_buf) + _free(ppp->unit_buf); if (ppp->username) _free(ppp->username); } |