3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 09:39:25 +01:00

test-runner: fix double free issue on subtest queue

Coverity reported this as a leak, but the test queue is actually
getting freed later and does not need to be freed locally in add_path

This basically reverts c0863e5bc6
This commit is contained in:
James Prestwood 2019-10-23 09:24:10 -07:00 committed by Denis Kenzior
parent 45bd459711
commit bf3b403e90

View File

@ -1092,8 +1092,6 @@ static bool add_path(const char *path, int level, struct l_queue *config_queue)
l_queue_insert(config_queue, entry, insert_test_entry, NULL); l_queue_insert(config_queue, entry, insert_test_entry, NULL);
} }
l_queue_destroy(py_test_queue, l_free);
closedir(dir); closedir(dir);
return true; return true;
} }