Call detach only if function exists
authorAlan T. DeKok <aland@freeradius.org>
Fri, 16 Oct 2009 16:53:49 +0000 (18:53 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 16 Oct 2009 16:53:49 +0000 (18:53 +0200)
src/modules/rlm_perl/rlm_perl.c

index 63ed701..174e74d 100644 (file)
@@ -938,7 +938,7 @@ static int perl_detach(void *instance)
                }
 #endif
 
-       {
+               if (inst->func_detach) {
        dTHXa(inst->perl);
        PERL_SET_CONTEXT(inst->perl);
        {