summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libirecovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libirecovery.c b/src/libirecovery.c
index f4d1cca..78745b1 100644
--- a/src/libirecovery.c
+++ b/src/libirecovery.c
@@ -153,7 +153,7 @@ irecv_error_t irecv_close(irecv_client_t client) {
}
if (client->context != NULL) {
- libusb_exit(NULL);
+ libusb_exit(client->context);
client->context = NULL;
}