diff options
author | Linus Nordberg <linus@nordu.net> | 2017-07-30 21:09:34 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2017-07-30 21:09:34 +0200 |
commit | dc55291f5b206bf33e34e6730eeccb3b3fc3f9d8 (patch) | |
tree | 922352ebeb0c4c1ea37a8ef9fef75fd6da6b10be /radsecproxy.c | |
parent | aaca6f5d45aa03367367897aa1201326ec691fa9 (diff) |
Free 'new' in error case.
coverity: 1449511
Diffstat (limited to 'radsecproxy.c')
-rw-r--r-- | radsecproxy.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } |