Dynamic memory allocation/deallocation for request object. Checked for memory-leaks using valgrind