forgot to free tbuf and rbuf since they were static during first tries
[my-code/fpga.git] / fx2 / usb_bulk_test.c
index f68309a..e6671fe 100644 (file)
@@ -139,6 +139,8 @@ int main(int argc,char **argv) {
                left-=rx;
        }
 
+       free(tbuf);
+       free(rbuf);
        close(usb_fd);
 
        return 0;