A few leaks fixed

### Description
The leaks introduces in sendHttpSocket fixed.
There might be more ... valgrind test is still active