Merge "spcom: fix memory leak in spcom register client / register service API"
This commit is contained in:
commit
f22f33a3ba
1 changed files with 2 additions and 0 deletions
|
@ -1138,6 +1138,7 @@ struct spcom_client *spcom_register_client(struct spcom_client_info *info)
|
|||
ch = spcom_find_channel_by_name(name);
|
||||
if (!ch) {
|
||||
pr_err("channel %s doesn't exist, load App first.\n", name);
|
||||
kfree(client);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1325,6 +1326,7 @@ struct spcom_server *spcom_register_service(struct spcom_service_info *info)
|
|||
ch = spcom_find_channel_by_name(name);
|
||||
if (!ch) {
|
||||
pr_err("channel %s doesn't exist, load App first.\n", name);
|
||||
kfree(server);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue