diff --git a/c_c++/windows/x64/riffa.c b/c_c++/windows/x64/riffa.c index e7ee501..67496a3 100755 --- a/c_c++/windows/x64/riffa.c +++ b/c_c++/windows/x64/riffa.c @@ -150,6 +150,7 @@ int RIFFACALL fpga_send(fpga_t * fpga, int chnl, void * data, int len, printf("Error in DeviceIoControl: %d\n", GetLastError()); } } + CloseHandle(evt); return wordsReturned; } @@ -198,6 +199,7 @@ int RIFFACALL fpga_recv(fpga_t * fpga, int chnl, void * data, int len, printf("Error in DeviceIoControl: %d\n", GetLastError()); } } + CloseHandle(evt); return wordsReturned; } diff --git a/c_c++/windows/x86/riffa.c b/c_c++/windows/x86/riffa.c index e7ee501..67496a3 100755 --- a/c_c++/windows/x86/riffa.c +++ b/c_c++/windows/x86/riffa.c @@ -150,6 +150,7 @@ int RIFFACALL fpga_send(fpga_t * fpga, int chnl, void * data, int len, printf("Error in DeviceIoControl: %d\n", GetLastError()); } } + CloseHandle(evt); return wordsReturned; } @@ -198,6 +199,7 @@ int RIFFACALL fpga_recv(fpga_t * fpga, int chnl, void * data, int len, printf("Error in DeviceIoControl: %d\n", GetLastError()); } } + CloseHandle(evt); return wordsReturned; }