Merge pull request #40 from lioncash/va

soc_ioctl: Add a missing va_end call
This commit is contained in:
mtheall 2014-11-24 08:15:29 -06:00
commit d5bb0323a5

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;
} }