Log all sdb log messages to the log file instead of stdout.
[mono.git] / mono / mini / declsec.c
index e64286ff4c7e511d70005ae0554a8d27c196de71..65e38d7f8fe5b29cb3e0b517954faace3cd71875 100644 (file)
@@ -214,6 +214,8 @@ mono_declsec_linkdemand_aptc (MonoDomain *domain, MonoMethod *caller, MonoMethod
                        /* look for AllowPartiallyTrustedCallersAttribute */
                        result = mono_custom_attrs_has_attr (cinfo, secman->allowpartiallytrustedcallers);
                }
+               if (cinfo)
+                       mono_custom_attrs_free (cinfo);
                MONO_SECMAN_FLAG_SET_VALUE (assembly->aptc, result);
        }