From dc55291f5b206bf33e34e6730eeccb3b3fc3f9d8 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sun, 30 Jul 2017 21:09:34 +0200 Subject: Free 'new' in error case. coverity: 1449511 --- radsecproxy.c | 1 + 1 file changed, 1 insertion(+) (limited to 'radsecproxy.c') diff --git a/radsecproxy.c b/radsecproxy.c index 7c45751..368a2a5 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -237,6 +237,7 @@ struct client *addclient(struct clsrvconf *conf, uint8_t lock) { if (lock) pthread_mutex_unlock(conf->lock); debug(DBG_ERR, "malloc failed"); + free(new); return NULL; } } -- cgit v1.1