st/prober: Free builders list

This commit is contained in:
Jakob Bornecrantz 2022-06-17 15:48:38 +01:00
parent afec083047
commit cf152fe4cc

View file

@ -585,6 +585,8 @@ teardown(struct prober *p)
xrt_builder_destroy(&p->builders[i]);
}
p->builder_count = 0;
free(p->builders);
p->builders = NULL;
// Clean up all auto_probers.
for (int i = 0; i < XRT_MAX_AUTO_PROBERS && p->auto_probers[i]; i++) {