Permalink
Browse files

updateDevice() remove element from the list when realloc fails

  • Loading branch information...
miniupnp committed Dec 18, 2018
1 parent 9066896 commit cd506a67e174a45c6a202eff182a712955ed6d6f
Showing with 1 addition and 0 deletions.
  1. +1 −0 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;
}

0 comments on commit cd506a6

Please sign in to comment.