From 43d9e426bd3f976715c0f8843db0e686f174b7cd Mon Sep 17 00:00:00 2001 From: venaas Date: Fri, 28 Sep 2007 13:11:08 +0000 Subject: wrong free when certuriregex fails to compile, fixed but harmless git-svn-id: https://svn.testnett.uninett.no/radsecproxy/branches/release-1.0@173 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'radsecproxy.c') diff --git a/radsecproxy.c b/radsecproxy.c index 5c9df20..5f51d10 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -2140,7 +2140,7 @@ int addmatchcertattr(struct peer *conf, char *matchcertattr) { return 0; } if (regcomp(conf->certuriregex, v, REG_ICASE | REG_NOSUB)) { - regfree(conf->certuriregex); + free(conf->certuriregex); conf->certuriregex = NULL; debug(DBG_ERR, "failed to compile regular expression %s", v); return 0; -- cgit v1.1