dtcm: Coverity 88165
This commit is contained in:
@@ -2186,10 +2186,12 @@ str_to_period(char *ps, CSA_sint32 *repeat_type, int *repeat_nth) {
|
|||||||
unit++;
|
unit++;
|
||||||
ps2 = cm_strdup(unit);
|
ps2 = cm_strdup(unit);
|
||||||
ptr = strchr(ps2, ' ');
|
ptr = strchr(ps2, ' ');
|
||||||
if (ptr != NULL)
|
if (ptr != NULL) {
|
||||||
*ptr = '\0';
|
*ptr = '\0';
|
||||||
else
|
} else {
|
||||||
|
free(ps2);
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ptr++;
|
ptr++;
|
||||||
while (*ptr == ' ')
|
while (*ptr == ' ')
|
||||||
|
|||||||
Reference in New Issue
Block a user