[PATCH 5.10 367/452] tracing: Fix potential double free in create_var_ref()