Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions server/plat/gdial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ class GDialCastObject
reterror = GDIAL_CAST_ERROR_NONE;
}
}
if (nullptr != AppObj)
{
delete AppObj;
AppObj = nullptr;
}
GDIAL_LOGTRACE("Exiting ...");
return reterror;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverity Issue - Resource leak

Variable "AppObj" going out of scope leaks the storage it points to.

High Impact, CWE-404
RESOURCE_LEAK

}
Expand Down Expand Up @@ -993,4 +988,4 @@ int gdial_os_application_service_notification(gboolean isNotifyRequired, void* n
}
GDIAL_LOGTRACE("Exiting ...");
return GDIAL_APP_ERROR_NONE;
}
}
Loading