From: Jean-Baptiste Mardelle Date: Mon, 23 Jul 2012 08:58:13 +0000 (+0200) Subject: jogshuttle.cpp: close() on error path [Coverity 7/14] by Mikko Rapeli X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=0ae1ad35ac158ca3a89de99c25dff38575ea1ae5;p=kdenlive jogshuttle.cpp: close() on error path [Coverity 7/14] by Mikko Rapeli --- diff --git a/src/jogshuttle.cpp b/src/jogshuttle.cpp index b5dd0e8c..8446076e 100644 --- a/src/jogshuttle.cpp +++ b/src/jogshuttle.cpp @@ -95,6 +95,7 @@ void ShuttleThread::run() if (ioctl(fd, EVIOCGRAB, 1) < 0) { fprintf(stderr, "Can't get exclusive access on Jog Shuttle FILE DESCRIPTOR\n"); + close(fd); return;; }