]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
bugfix with a temporary kludge
authorTimo Sirainen <tss@iki.fi>
Wed, 28 May 2003 11:15:04 +0000 (14:15 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 28 May 2003 11:15:04 +0000 (14:15 +0300)
--HG--
branch : HEAD

src/lib-index/maildir/maildir-sync.c

index 45c970aa55a1de95776ba9dd66108132e66a6c52..072f69f6ea22f6affdfa27086ebb697d35d079ca 100644 (file)
@@ -581,7 +581,10 @@ static int maildir_index_full_sync_init(struct maildir_sync_context *ctx)
                hash_rec = p_new(ctx->pool, struct maildir_hash_rec, 1);
                hash_rec->rec = rec;
                hash_rec->action = MAILDIR_FILE_ACTION_EXPUNGE;
-               hash_insert(ctx->files, (void *) fname, hash_rec);
+
+               /* FIXME: p_strdup() eats uselessly memory. fix the code so
+                  that it's not needed. */
+               hash_insert(ctx->files, (void *) p_strdup(ctx->pool, fname), hash_rec);
 
                rec = index->next(index, rec);
        }