(/home/sate/Testcases/c/cve/dovecot-1.2.0/src/master/master-settings.c) |
| |
| 1187 | | | static struct namespace_settings * |
| 1188 | | | namespace_settings_new(struct server_settings *server, const char *type) |
| 1189 | | | { |
| 1190 | | | struct namespace_settings *ns, **ns_p; |
| 1191 | | | |
| 1192 | | | ns = p_new(settings_pool, struct namespace_settings, 1);
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/mempool.h |
| |
84 | #define p_new(pool, type, count) \ |
85 | ((type *) p_malloc(pool, sizeof(type) * (count))) |
| |
x /home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/mempool.h |
| |
87 | #define p_malloc(pool, size) (pool)->v->malloc(pool, size) |
| |
|
| 1193 | | | *ns = default_namespace_settings; |
| 1194 | | | |
| 1195 | | | ns->parent = server; |
| 1196 | [+][+] | | ns->type = str_lcase(p_strdup(settings_pool, type)); |
 |
 |
| |