diff --git a/minissdpd/minissdpd.c b/minissdpd/minissdpd.c index 5d4a386..5c9c5d6 100644 --- a/minissdpd/minissdpd.c +++ b/minissdpd/minissdpd.c @@ -318,6 +318,7 @@ updateDevice(const struct header * headers, time_t t) if(!tmp) /* allocation error */ { syslog(LOG_ERR, "updateDevice() : memory allocation error"); + *pp = p->next; /* remove "p" from the list */ free(p); return 0; }