aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sshfs.c b/sshfs.c
index 0d3e562..8d12d07 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -1393,7 +1393,9 @@ static int sftp_read(struct conn *conn, uint8_t *type, struct buffer *buf)
static void request_free(struct request *req)
{
+ pthread_mutex_lock(&sshfs.lock);
req->conn->req_count--;
+ pthread_mutex_unlock(&sshfs.lock);
buf_free(&req->reply);
sem_destroy(&req->ready);
g_free(req);