What are the ethical and legal implications of releasing films like 'Udaipur Files' that are based on sensitive or ongoing legal matters?

This question aims to analyze the responsibilities of the government and judiciary in regulating media content that could influence public opinion or judicial proceedings, especially in sensitive cases.