FreeBSD Bugzilla – Attachment 15110 Details for
Bug 28108
[PATCH] cron leaks memory when reloading crontab files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.04 KB, created by
Mark Peek
on 2001-06-12 21:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Mark Peek
Created:
2001-06-12 21:50:01 UTC
Size:
1.04 KB
patch
obsolete
>Index: usr.sbin/cron/lib/entry.c >=================================================================== >RCS file: /home/ncvs/src/usr.sbin/cron/lib/entry.c,v >retrieving revision 1.9.2.2 >diff -u -r1.9.2.2 entry.c >--- usr.sbin/cron/lib/entry.c 2000/07/01 10:35:07 1.9.2.2 >+++ usr.sbin/cron/lib/entry.c 2001/06/12 18:13:53 >@@ -262,6 +262,9 @@ > char *username = cmd; /* temp buffer */ > char *s, *group; > struct group *grp; >+#ifdef LOGIN_CAP >+ login_cap_t *lc; >+#endif > > Debug(DPARS, ("load_entry()...about to parse username\n")) > ch = get_string(username, MAX_COMMAND, file, " \t"); >@@ -287,10 +290,11 @@ > ecode = e_mem; > goto eof; > } >- if (login_getclass(e->class) == NULL) { >+ if ((lc = login_getclass(e->class)) == NULL) { > ecode = e_class; > goto eof; > } >+ login_close(lc); > #endif > grp = NULL; > if ((s = strrchr(username, ':')) != NULL) { >@@ -416,7 +420,7 @@ > return e; > > eof: >- free(e); >+ free_entry(e); > if (ecode != e_none && error_func) > (*error_func)(ecodes[(int)ecode]); > while (ch != EOF && ch != '\n')
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28108
: 15110