* net.cc (if_freenameindex): Don't catch a SEGV from free to fail

loudly on double free.
This commit is contained in:
Corinna Vinschen 2014-08-21 08:59:28 +00:00
parent 88fa851784
commit b1f81c3b71
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2014-08-21 Corinna Vinschen <corinna@vinschen.de>
* net.cc (if_freenameindex): Don't catch a SEGV from free to fail
loudly on double free.
2014-08-21 Corinna Vinschen <corinna@vinschen.de>
* dir.cc (rmdir): Don't skip deleting fh in the ENOTEMPTY case.

View File

@ -2380,9 +2380,6 @@ if_nameindex (void)
extern "C" void
if_freenameindex (struct if_nameindex *ptr)
{
myfault efault;
if (efault.faulted (EFAULT))
return;
free (ptr);
}