Memory leak fix from https://github.com/Yelp/python-gearman/pull/20/files