X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=message-file.c;fp=message-file.c;h=a4c0860698d535eac3f9f5d1c2883e9e452314be;hb=8e96a87fff4d34a154d1456e9ad47e7b0c322d54;hp=2bd560569dda6aedda058d8942d65e53a4b32f80;hpb=94f01d9de914b609e1f02385092b82fd61ca73b5;p=notmuch diff --git a/message-file.c b/message-file.c index 2bd56056..a4c08606 100644 --- a/message-file.c +++ b/message-file.c @@ -75,7 +75,7 @@ notmuch_message_file_open (const char *filename) { notmuch_message_file_t *message; - message = xcalloc (1, sizeof (notmuch_message_file_t)); + message = talloc_zero (NULL, notmuch_message_file_t); message->file = fopen (filename, "r"); if (message->file == NULL) @@ -116,7 +116,7 @@ notmuch_message_file_close (notmuch_message_file_t *message) if (message->file) fclose (message->file); - free (message); + talloc_free (message); } void