diff --git a/src/servers/app/BitmapManager.cpp b/src/servers/app/BitmapManager.cpp index e10496d3a2..1d31ccae47 100644 --- a/src/servers/app/BitmapManager.cpp +++ b/src/servers/app/BitmapManager.cpp @@ -193,6 +193,7 @@ BitmapManager::CreateBitmap(ClientMemoryAllocator* allocator, // indicate this is needed } else { // Allocation failed for buffer or bitmap list + free(buffer); delete bitmap; bitmap = NULL; }