From: Arran Cudbard-Bell Date: Sun, 30 Sep 2018 14:11:06 +0000 (+0800) Subject: Use corrext context X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb577df8e459c6b2616dd9388009f7251dc987bc;p=thirdparty%2Ffreeradius-server.git Use corrext context --- diff --git a/src/lib/util/regex.c b/src/lib/util/regex.c index e0812dec6cd..484acfa8fd6 100644 --- a/src/lib/util/regex.c +++ b/src/lib/util/regex.c @@ -897,7 +897,7 @@ fr_regmatch_t *regex_match_data_alloc(TALLOC_CTX *ctx, uint32_t count) talloc_free(regmatch); return NULL; } - regmatch->match_data = talloc_array(ctx, regmatch_t, count); + regmatch->match_data = talloc_array(regmatch, regmatch_t, count); if (unlikely(!regmatch->match_data)) goto error; regmatch->allocd = count;