Fix leak detected by analyzer in Xcode 6

@jverkoey This is a patch for a leak in release 1.1 that is picked up by the static analyzer in Xcode 6. I see that you've done some additional work since 1.1 that hasn't been released yet, but this was a straightforward fix that seems like a good candidate for a patch release.