The valgrind tool reports memory references held by the library at exit. To repeat, just initialize a context, destroy it, exit.