]> git.zerfleddert.de Git - rigol/blobdiff - rigol.c
move usb_close to usbtmc, fix memory leak
[rigol] / rigol.c
diff --git a/rigol.c b/rigol.c
index 93b85665c0c3c2fe7f70038d95cc313534c38d0d..6ae9d73dac9a3eb3f0d73b74f965e5ef7923a9dc 100644 (file)
--- a/rigol.c
+++ b/rigol.c
@@ -165,8 +165,6 @@ int main(int argc, char **argv)
        //Disable keylock, so the user doesn't have to press the 'force'-button
        l=usbtmc_sendscpi(sc, ":KEY:LOCK DISABLE",NULL,0); 
 
        //Disable keylock, so the user doesn't have to press the 'force'-button
        l=usbtmc_sendscpi(sc, ":KEY:LOCK DISABLE",NULL,0); 
 
-       //Free up and exit
-       usb_release_interface(sc,0);
-       usb_close(sc);
+       usbtmc_close(sc);
        return 0;
 }
        return 0;
 }
Impressum, Datenschutz