aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'e-util/e-memory.c')
-rw-r--r--e-util/e-memory.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/e-util/e-memory.c b/e-util/e-memory.c
index 2a3cd55771..37ec181ce9 100644
--- a/e-util/e-memory.c
+++ b/e-util/e-memory.c
@@ -427,6 +427,16 @@ void *e_mempool_alloc(MemPool *pool, int size)
}
}
+char *e_mempool_strdup(EMemPool *pool, const char *str)
+{
+ char *out;
+
+ out = e_mempool_alloc(pool, strlen(str));
+ strcpy(out, str);
+
+ return out;
+}
+
/**
* e_mempool_flush:
* @pool: