[PATCH openEuler-22.03-LTS-SP1 v2 2/2] tracing: Free buffers when a used dynamic event is removed