help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

2.1.17 cfservd.c connection memory leak


From: Joe Buehler
Subject: 2.1.17 cfservd.c connection memory leak
Date: Thu, 22 Dec 2005 15:14:49 -0500
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

This was found via a cfrun invocation:

\"/home/project-releases/tmp/cfengine-2.1.17/src/cfservd.c\", line 3367:
(LEAK_FREE)
>> free ((char *)conn);

  Memory leaked freeing block: malloc(16)

  Lost block : 0x200d1758 thru 0x200d1767 (16 bytes)
               malloc(16), allocated at cfservd.c, 2471
                          malloc()  (interface)
          AuthenticationDialogue()  cfservd.c, 2471
              BusyWithConnection()  cfservd.c, 1268
                HandleConnection()  cfservd.c, 1149

  Stack trace where the error occurred:
                            free()  (interface)
                      DeleteConn()  cfservd.c, 3367
                HandleConnection()  cfservd.c, 1173

The problem is that "conn" is being freed, but it contains
a pointer to an object that was created via malloc:

conn->session_key = malloc(CF_BLOWFISHSIZE);
-- 
Joe Buehler





reply via email to

[Prev in Thread] Current Thread [Next in Thread]