Ticket #1347: Fix-memory-leak-on-windows-1371.patch

File Fix-memory-leak-on-windows-1371.patch, 0.8 kB (added by stbuehler, 8 months ago)
  • src/stream.c

    From e44cb8888bf12b3e6ef5ddbc7c9d1a7ee0e1d91c Mon Sep 17 00:00:00 2001
    From: =?utf-8?q?Stefan=20B=C3=BChler?= <stbuehler@web.de>
    Date: Sun, 17 Feb 2008 19:26:11 +0100
    Subject: [PATCH] Fix memory leak on windows (#1371)
    
    ---
     src/stream.c |    3 ++-
     1 files changed, 2 insertions(+), 1 deletions(-)
    
    diff --git a/src/stream.c b/src/stream.c
    index aac6cf7..d249647 100644
    a b  
    6464                        NULL); 
    6565 
    6666        if (!mh) { 
     67/* 
    6768                LPVOID lpMsgBuf; 
    6869                FormatMessage( 
    6970                        FORMAT_MESSAGE_ALLOCATE_BUFFER | 
     
    7374                        MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), 
    7475                        (LPTSTR) &lpMsgBuf, 
    7576                        0, NULL ); 
    76  
     77*/ 
    7778                return -1; 
    7879        } 
    7980