Bugfixed: #issues13 proxy_next_upstream caused the upstream could not be freed

Thanks to magicleo