[Asterisk-cvs] asterisk pbx.c,1.113,1.114
markster at lists.digium.com
markster at lists.digium.com
Wed Apr 21 20:23:07 CDT 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv20045
Modified Files:
pbx.c
Log Message:
Use ast_strdupa instead of strdup in goto (bug #1465)
Index: pbx.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx.c,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -d -r1.113 -r1.114
--- pbx.c 19 Apr 2004 23:00:50 -0000 1.113
+++ pbx.c 22 Apr 2004 00:27:48 -0000 1.114
@@ -4373,7 +4373,7 @@
ast_log(LOG_WARNING, "Goto requires an argument (optional context|optional extension|priority)\n");
return -1;
}
- s = strdup((void *) data);
+ s = ast_strdupa((void *) data);
stringp=s;
context = strsep(&stringp, "|");
exten = strsep(&stringp, "|");
@@ -4393,7 +4393,6 @@
}
if (atoi(pri) < 0) {
ast_log(LOG_WARNING, "Priority '%s' must be a number > 0\n", pri);
- free(s);
return -1;
}
/* At this point we have a priority and maybe an extension and a context */
More information about the svn-commits
mailing list