aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_read.c')
-rw-r--r--apps/app_read.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/app_read.c b/apps/app_read.c
index ef7f183ad..eaa9cfdd2 100644
--- a/apps/app_read.c
+++ b/apps/app_read.c
@@ -118,11 +118,6 @@ static int read_exec(struct ast_channel *chan, void *data)
LOCAL_USER_ADD(u);
argcopy = ast_strdupa(data);
- if (!argcopy) {
- ast_log(LOG_ERROR, "Out of memory!\n");
- LOCAL_USER_REMOVE(u);
- return -1;
- }
AST_STANDARD_APP_ARGS(arglist, argcopy);