diff options
Diffstat (limited to 'ext/socket/socket.c')
-rw-r--r-- | ext/socket/socket.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index eb74f7a936..74cb0644e6 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -1654,8 +1654,7 @@ socket_s_ip_address_list(VALUE self) finish: save_errno = errno; - if (lc.lifc_buf != NULL) - xfree(lc.lifc_req); + xfree(lc.lifc_req); if (fd != -1) close(fd); errno = save_errno; |