* net.cc (if_freenameindex): Don't catch a SEGV from free to fail
loudly on double free.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user