Fixed memory leak with download_address and upload_address in main

use of asprintf allocates memory but was not free'd