mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-12-29 16:02:29 +00:00
[client/common] fixes for issues detected through static analysis.
This commit is contained in:
@@ -216,6 +216,12 @@ GraphHandle overlayGraph_register(const char * name, RingBuffer buffer,
|
||||
float min, float max, GraphFormatFn formatFn)
|
||||
{
|
||||
struct OverlayGraph * graph = malloc(sizeof(*graph));
|
||||
if (!graph)
|
||||
{
|
||||
DEBUG_ERROR("out of memory");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
graph->name = name;
|
||||
graph->buffer = buffer;
|
||||
graph->enabled = true;
|
||||
|
||||
Reference in New Issue
Block a user