soc_ioctl: Add a missing va_end call

This commit is contained in:
Lioncash 2014-11-24 08:31:41 -05:00
parent 165e50091c
commit 15cd3bd2c3

View File

@ -24,6 +24,7 @@ int ioctl(int fd, int request, ...)
flags = fcntl(fd, F_GETFL, 0); flags = fcntl(fd, F_GETFL, 0);
if(flags == -1) { if(flags == -1) {
errno = SOC_GetErrno(); errno = SOC_GetErrno();
va_end(ap);
return -1; return -1;
} }