Fix memory leaks when creating a context.
1 file changed