Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Apr 25, 2014
1 parent cdcd7d7 commit dd470c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/evaluate.c
Expand Up @@ -282,7 +282,7 @@ static int do_regex(REQUEST *request, value_pair_map_t const *map, bool iflag)

default:
rad_assert(0);
break;
return -1;
}

rcode = radius_expand_tmpl(&lhs, request, map->dst);
Expand All @@ -306,7 +306,7 @@ static int do_regex(REQUEST *request, value_pair_map_t const *map, bool iflag)
* regcomp allocs extra memory for the expression, so if the
* result wasn't cached we need to free it here.
*/
if (map->src->type == VPT_TYPE_REGEX) regfree(&reg);
if (preg == &reg) regfree(&reg);

return ret;
}
Expand Down

0 comments on commit dd470c6

Please sign in to comment.