fix: free process args in pthread

This commit is contained in:
2026-05-16 16:24:42 +02:00
parent fb77d8e893
commit 9969230cd9
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -73,5 +73,6 @@ void *midi_background_listen(void *args) {
log_info("(%s) background acquisition stopped after error", device->name);
midi_close(device);
}
free(process_args);
pthread_exit(NULL);
}
+1
View File
@@ -643,6 +643,7 @@ void *state_background_write(void *args) {
}
log_info("(state) background writing stopped by main thread");
free(process_args);
pthread_exit(NULL);
}
+1
View File
@@ -377,6 +377,7 @@ void *video_background_read(void *args) {
video_capture->disconnected = true;
context->input_formats[input_index] = 0;
}
free(process_args);
pthread_exit(NULL);
}