|
@@ -4199,7 +4199,6 @@ int snd_soc_of_parse_audio_routing(struct snd_soc_card *card,
|
|
|
dev_err(card->dev,
|
|
|
"ASoC: Property '%s' index %d could not be read: %d\n",
|
|
|
propname, 2 * i, ret);
|
|
|
- kfree(routes);
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
ret = of_property_read_string_index(np, propname,
|
|
@@ -4208,7 +4207,6 @@ int snd_soc_of_parse_audio_routing(struct snd_soc_card *card,
|
|
|
dev_err(card->dev,
|
|
|
"ASoC: Property '%s' index %d could not be read: %d\n",
|
|
|
propname, (2 * i) + 1, ret);
|
|
|
- kfree(routes);
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
}
|