[PATCH 5.4 229/411] tracing: Fix potential double free in create_var_ref()