]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use corrext context
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 30 Sep 2018 14:11:06 +0000 (22:11 +0800)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 30 Sep 2018 14:11:06 +0000 (22:11 +0800)
src/lib/util/regex.c

index e0812dec6cdb799e575fc85d00dbbdb974a96272..484acfa8fd643ff1f8a3e155593e194eb66c1713 100644 (file)
@@ -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;