summaryrefslogtreecommitdiff
path: root/main/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/loader.c')
-rw-r--r--main/loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/loader.c b/main/loader.c
index 060243ccc..cd4e09ba4 100644
--- a/main/loader.c
+++ b/main/loader.c
@@ -526,7 +526,7 @@ char *ast_module_helper(const char *line, const char *word, int pos, int state,
if (!strncasecmp(word, cur->resource, l) &&
(cur->info->reload || !needsreload) &&
++which > state) {
- ret = strdup(cur->resource);
+ ret = ast_strdup(cur->resource);
break;
}
}
@@ -535,7 +535,7 @@ char *ast_module_helper(const char *line, const char *word, int pos, int state,
if (!ret) {
for (i=0; !ret && reload_classes[i].name; i++) {
if (!strncasecmp(word, reload_classes[i].name, l) && ++which > state)
- ret = strdup(reload_classes[i].name);
+ ret = ast_strdup(reload_classes[i].name);
}
}