ediff-janitor

ediff-janitor is a compiled Lisp function in `ediff-util.el'.

(ediff-janitor ASK KEEP-VARIANTS)

Kill buffers A, B, and, possibly, C, if these buffers aren't modified.
In merge jobs, buffer C is not deleted here, but rather according to
ediff-quit-merge-hook.
A side effect of cleaning up may be that you should be careful when comparing
the same buffer in two separate Ediff sessions: quitting one of them might
delete this buffer in another session as well.