[sr-dev] git:5.0:49bafac8: http_async_client: fix memory leak in pkg memory in case of error