From: Lioncash Date: Mon, 24 Nov 2014 13:31:41 +0000 (-0500) Subject: soc_ioctl: Add a missing va_end call X-Git-Tag: v0.2.0~26^2 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=15cd3bd2c32dc36f1fc46ce79fa5522844d9daf6;p=corbenik%2Fctrulib.git soc_ioctl: Add a missing va_end call --- diff --git a/libctru/source/services/soc/soc_ioctl.c b/libctru/source/services/soc/soc_ioctl.c index b9dea04..4125646 100644 --- a/libctru/source/services/soc/soc_ioctl.c +++ b/libctru/source/services/soc/soc_ioctl.c @@ -24,6 +24,7 @@ int ioctl(int fd, int request, ...) flags = fcntl(fd, F_GETFL, 0); if(flags == -1) { errno = SOC_GetErrno(); + va_end(ap); return -1; }