res_stir_shaken: Fix memory allocation error in curl.c