Nonvolatile memory disturbs due to gate and junction leakage currents