Ticket #10503: 0004-Fix-memory-leak.patch

File 0004-Fix-memory-leak.patch, 855 bytes (added by mt, 6 years ago)
  • src/servers/app/drawing/DWindowHWInterface.cpp

    From 01f7f530d5cdfe76e2dec1398ce71a7a5a94708b Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Mon, 6 Jan 2014 22:16:41 +0900
    Subject: [PATCH 4/8] Fix memory leak
    
    ---
     src/servers/app/drawing/DWindowHWInterface.cpp |    1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/src/servers/app/drawing/DWindowHWInterface.cpp b/src/servers/app/drawing/DWindowHWInterface.cpp
    index 38b6c8a..68f9af8 100644
    a b sprintf((char*)cloneInfoData, "graphics/%s", fCardNameInDevFS.String());  
    527527                STRACE(("unable to get B_CLONE_ACCELERANT\n"));
    528528                unload_add_on(fAccelerantImage);
    529529                fAccelerantImage = -1;
     530                free(cloneInfoData);
    530531                return B_ERROR;
    531532            }
    532533            status_t ret = cloneAccelerant(cloneInfoData);