fix: free process args in pthread
This commit is contained in:
@@ -73,5 +73,6 @@ void *midi_background_listen(void *args) {
|
|||||||
log_info("(%s) background acquisition stopped after error", device->name);
|
log_info("(%s) background acquisition stopped after error", device->name);
|
||||||
midi_close(device);
|
midi_close(device);
|
||||||
}
|
}
|
||||||
|
free(process_args);
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -643,6 +643,7 @@ void *state_background_write(void *args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
log_info("(state) background writing stopped by main thread");
|
log_info("(state) background writing stopped by main thread");
|
||||||
|
free(process_args);
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -377,6 +377,7 @@ void *video_background_read(void *args) {
|
|||||||
video_capture->disconnected = true;
|
video_capture->disconnected = true;
|
||||||
context->input_formats[input_index] = 0;
|
context->input_formats[input_index] = 0;
|
||||||
}
|
}
|
||||||
|
free(process_args);
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user