X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-reindex.c;h=3139a8c665a0fb46bb6626a77c32f26c4ff5c60a;hp=d8589120cae94ed4fa4efa1c3cfdda9520d5697d;hb=38dacf009c4feb5d4820bbdd9222d7e7be067903;hpb=c3a683299d4c27d6eadaacf4fb516f73a6c69fc3 diff --git a/notmuch-reindex.c b/notmuch-reindex.c index d8589120..3139a8c6 100644 --- a/notmuch-reindex.c +++ b/notmuch-reindex.c @@ -71,6 +71,7 @@ reindex_query (notmuch_database_t *notmuch, const char *query_string, ret = notmuch_message_reindex(message, indexopts); if (ret != NOTMUCH_STATUS_SUCCESS) break; + notmuch_message_destroy (message); } if (!ret) @@ -116,7 +117,7 @@ notmuch_reindex_command (notmuch_config_t *config, int argc, char *argv[]) notmuch_exit_if_unmatched_db_uuid (notmuch); - status = notmuch_process_shared_indexing_options (notmuch, config); + status = notmuch_process_shared_indexing_options (notmuch); if (status != NOTMUCH_STATUS_SUCCESS) { fprintf (stderr, "Error: Failed to process index options. (%s)\n", notmuch_status_to_string (status));