lib: Use talloc to simplify cleanup in notmuch_database_open
authorAustin Clements <amdragon@MIT.EDU>
Sun, 29 Jan 2012 05:50:10 +0000 (00:50 -0500)
committerDavid Bremner <bremner@debian.org>
Sat, 4 Feb 2012 01:15:45 +0000 (21:15 -0400)
commitc32116d04807eec475d7e19bb6723c35bc399059
treeebec688ac72e37141f917bac70df5515d78ba021
parent6c0adab23eadb81bb1254f4b82175902df11bb3f
lib: Use talloc to simplify cleanup in notmuch_database_open

Previously, we manually "free"d various pointers in
notmuch_database_open.  Use a local talloc context instead to simplify
cleanup and eliminate various NULL pointer initializations and
conditionals.
lib/database.cc