am 7c0a82b7: Fix apparent memory leak in tests.

* commit '7c0a82b7528c51299bf8dda6beb5e1fc8bf54b23':
  Fix apparent memory leak in tests.