mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
test/qemu: Fix free/close of log file.
The log file was not being closed at the right time, resulting in the
process running out of open files. Also the log filename buffer was
not freed.
This fixes commit 7bbf5cab28.
This commit is contained in:
@@ -224,10 +224,11 @@ start_thread (void *thread_data_vp)
|
||||
guestfs_h *g;
|
||||
unsigned errors = 0;
|
||||
char id[64];
|
||||
CLEANUP_FREE char *log_file = NULL;
|
||||
CLEANUP_FCLOSE FILE *log_fp = NULL;
|
||||
|
||||
for (;;) {
|
||||
CLEANUP_FREE char *log_file = NULL;
|
||||
CLEANUP_FCLOSE FILE *log_fp = NULL;
|
||||
|
||||
/* Take the next process. */
|
||||
err = pthread_mutex_lock (&mutex);
|
||||
if (err != 0) {
|
||||
|
||||
Reference in New Issue
Block a user