Changed code to use proper talloc context instead of NULL to control memory leak.