NetBSD-Bugs archive

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

bin/44147: Missing closedir in at.c .



>Number:         44147
>Category:       bin
>Synopsis:       Missing closedir in at.c .
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Nov 24 17:15:00 +0000 2010
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Memmory leaks in at.
>How-To-Repeat:

>Fix:
diff -u -r1.27 at.c
--- usr.bin/at/at.c     18 Jan 2009 01:02:41 -0000      1.27
+++ usr.bin/at/at.c     20 Nov 2010 09:53:31 -0000
@@ -485,6 +485,7 @@
                    jobno);
        }
        PRIV_END;
+       closedir(spool);
 }
 
 static void
@@ -565,6 +566,7 @@
                        }
                }
        }
+       closedir(spool);
 }
 
 /* Global functions */



Home | Main Index | Thread Index | Old Index