Revert "ipv4: fix memory leaks in ip_cmsg_send() callers"

This reverts commit 919483096b.

There is only when ip_options_get() return zero need to free.
It already called kfree() when return error.

Fixes: 919483096b ("ipv4: fix memory leaks in ip_cmsg_send() callers")
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Yajun Deng 2021-09-13 12:04:42 +08:00 • committed by David S. Miller
commit d7807a9adf
4 changed files with 7 additions and 10 deletions