From: Arran Cudbard-Bell Date: Wed, 2 Sep 2020 19:13:45 +0000 (-0400) Subject: value: String is already in the correct ctx, don't increase the ref count X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b21fcd4dead57f7f2876ebdbcceeba6ce6ade7e4;p=thirdparty%2Ffreeradius-server.git value: String is already in the correct ctx, don't increase the ref count --- diff --git a/src/lib/util/value.c b/src/lib/util/value.c index 69ed3b8d396..15a8477f2c3 100644 --- a/src/lib/util/value.c +++ b/src/lib/util/value.c @@ -1740,7 +1740,7 @@ static inline int fr_value_box_cast_to_strvalue(TALLOC_CTX *ctx, fr_value_box_t str = fr_value_box_asprint(ctx, src, '\0'); if (unlikely(!str)) return -1; - return fr_value_box_bstrdup_buffer_shallow(ctx, dst, dst_enumv, str, src->tainted); + return fr_value_box_bstrdup_buffer_shallow(NULL, dst, dst_enumv, str, src->tainted); } } }