Python: fixed potential object leak in case of allocation error.
Python: fixed potential object leak in case of allocation error.

nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit,nginx/unit