bug-cvs
[Top][All Lists]
Advanced

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

Small memleak when connecting to pserver


From: Petter Reinholdtsen
Subject: Small memleak when connecting to pserver
Date: Sat, 28 Apr 2001 14:28:08 +0200

>Submitter-Id:   net
>Originator:     Petter Reinholdtsen
>Organization:
net
>Confidential:  no
>Synopsis:      Small memleak when connecting to pserver
>Severity:      non-critical
>Priority:      low
>Category:      cvs
>Class:         sw-bug
>Release:       cvs-1.11
>Environment:
 
System: SunOS golem.intern.opera.no 5.8 Generic sun4u sparc SUNW,Ultra-250
Architecture: sun4
 
>Description:
        I ran CVS 1.11 through Purify, and only found one small memleak.
        get_cvs_password() return a string pointer allocated on the heap,
        but it is not released in connect_to_pserver().
>How-To-Repeat:
>Fix:
        This patch fixes the problem:
*** src/client.c.orig   Sat Apr 28 13:14:58 2001
--- src/client.c        Sat Apr 28 13:15:37 2001
***************
*** 3859,3864 ****
--- 3859,3865 ----
 
          /* Paranoia. */
          memset (password, 0, strlen (password));
+       free(password);
      }
 
      {
 



reply via email to

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