IPv4: Fixed memory leaks detected by memcheck.