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