]> git.sesse.net Git - kdenlive/commitdiff
jogshuttle.cpp: close() on error path [Coverity 7/14] by Mikko Rapeli
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Jul 2012 08:58:13 +0000 (10:58 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 23 Jul 2012 08:58:13 +0000 (10:58 +0200)
src/jogshuttle.cpp

index b5dd0e8cbe2f641af58d8a6027f30c8957d7621b..8446076e95da3e74a9186a29b5f0dd867ecabb1e 100644 (file)
@@ -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;;
     }