Skip to content
Snippets Groups Projects
Commit 30e2d170 authored by Ali Mohammed's avatar Ali Mohammed
Browse files

cleanup unused reg entry

parent 419a2ed3
No related branches found
No related tags found
No related merge requests found
...@@ -259,11 +259,17 @@ mstro_pc_app_register_pending(mstro_app_id id) ...@@ -259,11 +259,17 @@ mstro_pc_app_register_pending(mstro_app_id id)
if((elt!=NULL) && (elt->pending)) { if((elt!=NULL) && (elt->pending)) {
//FIXME should be a warning as we can handle this //FIXME should be a warning as we can handle this
ERR("There is alreading a pending entry for app %"PRIappid", should not overwrite \n", id); ERR("There is alreading a pending entry for app %"PRIappid", should not overwrite \n", id);
/*cleanup*/
status = mstro_pm_app_reg__entry_dispose(e);
assert(status ==MSTRO_OK);
return MSTRO_FAIL; return MSTRO_FAIL;
} }
else if((elt!=NULL) && (!elt->pending)) else if((elt!=NULL) && (!elt->pending))
{ {
ERR("App %"PRIappid" already exists in regsitry, should not overwrite \n", id); ERR("App %"PRIappid" already exists in regsitry, should not overwrite \n", id);
/*cleanup*/
status = mstro_pm_app_reg__entry_dispose(e);
assert(status ==MSTRO_OK);
return MSTRO_FAIL; return MSTRO_FAIL;
} }
else { // elt == NULL else { // elt == NULL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment