fschopp/madlib — comment on commit 2f268443a2439b648bf14f9b288e37758b8e5c67
File: methods/kmeans/src/pg_gp/kmeans.c line 192
By fschopp:

OK, what I said applies to AllocSetDelete(). But when the parent context is deleted, that will also delete our new memory context, doesn't it? The first thing MemoryContextDelete does is call MemoryContextDeleteChildren.