summaryrefslogtreecommitdiff
path: root/lib/ferr.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2018-08-13 14:56:56 -0400
committerGitHub <noreply@github.com>2018-08-13 14:56:56 -0400
commitcd22c8ca74597aa27cb11dd28b613d53c0a36abe (patch)
tree3e51217c34b49df896e84bf63f80d65a5c5a270d /lib/ferr.c
parent5487152318c7f56867a027f7214c849f6fb23e5c (diff)
parente8c8f2e064c674d1c0935aaf04091c97e117c62f (diff)
Merge pull request #2820 from opensourcerouting/err-prep
remove alloc return value checks + minor babeld cleanup
Diffstat (limited to 'lib/ferr.c')
-rw-r--r--lib/ferr.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/ferr.c b/lib/ferr.c
index d315cf843c..45574520a5 100644
--- a/lib/ferr.c
+++ b/lib/ferr.c
@@ -70,13 +70,6 @@ static ferr_r ferr_set_va(const char *file, int line, const char *func,
if (!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);
}