diff --git a/src/daemon/notify.c b/src/daemon/notify.c index 22168f3e..ddafe5dd 100644 --- a/src/daemon/notify.c +++ b/src/daemon/notify.c @@ -18,6 +18,7 @@ void nprintf(usbdevice* kb, int nodenumber, usbmode* mode, const char* format, . if(mode) dprintf(fifo, "mode %d ", INDEX_OF(mode, profile->mode) + 1); vdprintf(fifo, format, va_args); + va_end(va_args); } return; } @@ -28,6 +29,7 @@ void nprintf(usbdevice* kb, int nodenumber, usbmode* mode, const char* format, . if(mode) dprintf(fifo, "mode %d ", INDEX_OF(mode, profile->mode) + 1); vdprintf(fifo, format, va_args); + va_end(va_args); } } }