forked from Mirror/frr
lib: Remove memory check test
Found a missed memory check test that can just be removed. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
aad95a7dc2
commit
5cecdba9d1
|
@ -70,13 +70,6 @@ static ferr_r ferr_set_va(const char *file, int line, const char *func,
|
||||||
|
|
||||||
if (!error) {
|
if (!error) {
|
||||||
error = XCALLOC(MTYPE_ERRINFO, sizeof(*error));
|
error = XCALLOC(MTYPE_ERRINFO, sizeof(*error));
|
||||||
if (!error) {
|
|
||||||
/* we're screwed */
|
|
||||||
zlog_err("out of memory while allocating error info");
|
|
||||||
raise(SIGSEGV);
|
|
||||||
abort(); /* raise() can return, but raise(SIGSEGV) shall
|
|
||||||
not */
|
|
||||||
}
|
|
||||||
|
|
||||||
pthread_setspecific(errkey, error);
|
pthread_setspecific(errkey, error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue