[PATCH openEuler-5.10-LTS 350/427] tracing: Fix potential double free in create_var_ref()