[PATCH 5.18 750/879] tracing: Fix potential double free in create_var_ref()