Not doing so, may lead to resource leak.

Signed-off-by: Dotan Barak <[email protected]>
Reviewed-by: Yishai Hadas <[email protected]>
---
 src/rsocket.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/rsocket.c b/src/rsocket.c
index 4c4821b..278c8ec 100644
--- a/src/rsocket.c
+++ b/src/rsocket.c
@@ -2002,6 +2002,7 @@ int rfcntl(int socket, int cmd, ... /* arg */ )
        va_start(args, cmd);
        switch (cmd) {
        case F_GETFL:
+               va_end(args);
                return (int) rs->fd_flags;
        case F_SETFL:
                param = va_arg(args, long);
-- 
1.7.8.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to