[LTP] [RFC PATCH 1/9] lib: Add support for guarded buffers
Richard Palethorpe
rpalethorpe@suse.de
Tue Aug 6 11:03:11 CEST 2019
Hi,
Cyril Hrubis <chrubis@suse.cz> writes:
> +void tst_free_all(void)
> +{
> + struct map *i = maps;
> +
> + while (i) {
> + struct map *j = i;
> + tst_res(TINFO, "Freeing %p %zu", i->addr, i->size);
This seems like debug info to me. Not really useful most of the time.
> + SAFE_MUNMAP(i->addr, i->size);
> + i = i->next;
> + free(j);
> + }
> +
> + maps = NULL;
> +}
--
Thank you,
Richard.
More information about the ltp
mailing list