]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
free tags in test ctx
authorAlan T. DeKok <aland@freeradius.org>
Thu, 21 Jan 2021 19:22:21 +0000 (14:22 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 21 Jan 2021 19:22:21 +0000 (14:22 -0500)
src/protocols/radius/decode.c

index ab8c4f31100573ca7dd325484fdf8e96f92b775f..7b0cd3b9779d3d58948d856cc878dcde4b0374e6 100644 (file)
@@ -1677,8 +1677,10 @@ ssize_t fr_radius_decode_pair(TALLOC_CTX *ctx, fr_cursor_t *cursor, fr_dict_t co
        return 2 + ret;
 }
 
-static int _test_ctx_free(UNUSED fr_radius_ctx_t *ctx)
+static int _test_ctx_free(fr_radius_ctx_t *ctx)
 {
+       talloc_free(ctx->tags);
+
        fr_radius_free();
 
        return 0;