PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> when i read the code in src/bin/initdb/initdb.c.
> At the function: set_info_version, we use pg_strdup to malloc memory, but
> we don't free it.
There are lots of minor memory leaks in initdb. We don't really care
that much, because the program executes over a fixed set of data and
then terminates.
regards, tom lane