return NULL;
}
if (data) {
- dest = strdup((char *)data);
+ dest = strdupa((char *)data);
} else {
ast_log(LOG_WARNING, "Channel requested with no data\n");
return NULL;
s = strsep(&stringp, "/");
if ((res = sscanf(s, "%d%c%d", &x, &opt, &y)) < 1) {
ast_log(LOG_WARNING, "Unable to determine group for data %s\n", (char *)data);
- free(dest);
return NULL;
}
groupmatch = 1 << x;
x = CHAN_PSEUDO;
} else if ((res = sscanf(s, "%d%c%d", &x, &opt, &y)) < 1) {
ast_log(LOG_WARNING, "Unable to determine channel for data %s\n", (char *)data);
- free(dest);
return NULL;
}
channelmatch = x;