X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;ds=sidebyside;f=lib%2Fquery.cc;h=ec60e2e45c01226a9ed326b8af22f1add8b77c8b;hb=4d5986e8ad671c1f5504894af6fbe37ba314bed8;hp=69668a451ac7570481792ab5aa4cc81a132f8581;hpb=d29d7e1ee25059c657412d5b045650f1e3e1533f;p=notmuch diff --git a/lib/query.cc b/lib/query.cc index 69668a45..ec60e2e4 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -80,7 +80,7 @@ notmuch_query_create (notmuch_database_t *notmuch, if (_debug_query ()) fprintf (stderr, "Query string is:\n%s\n", query_string); - query = talloc (NULL, notmuch_query_t); + query = talloc (notmuch, notmuch_query_t); if (unlikely (query == NULL)) return NULL;