net/ipv4: Eliminate kstrdup memory leak

Signed-off-by: Austin Au-Yeung <austinay1996@hotmail.com>