[sr-dev] git:master: xhttp: wrong variable was used for checking memory allocation