main: Don’t leak desired_ip memory

Signed-off-by: Anders Kaseorg <andersk@mit.edu>