]> git.ipfire.org Git - thirdparty/freeradius-server.git/commit
only set destructors if they're going to do work.
authorAlan T. DeKok <aland@freeradius.org>
Thu, 19 May 2022 23:01:03 +0000 (19:01 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 20 May 2022 16:08:59 +0000 (12:08 -0400)
commitec69d6487bf2c748bfe8fea84087789945209cbd
treea52914db50ae4ac861ccc469671f083a1978f532
parentbdc2f997ed4a76a66dbce3f9aa740beeef5c1563
only set destructors if they're going to do work.

This papers over certain issues with pure functions, and purifying
them.  But arguably pure functions should use no instance data,
and should take no destructors.  If they do, they're not pure.
src/lib/unlang/xlat_inst.c