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