FreeBSD Bugzilla – Attachment 5304 Details for
Bug 12769
Memory leak in init(8)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 777 bytes, created by
Peter Jeremy
on 1999-07-23 05:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Peter Jeremy
Created:
1999-07-23 05:20:00 UTC
Size:
777 bytes
patch
obsolete
>Index: sbin/init/init.c >=================================================================== >RCS file: /home/CVSROOT/./src/sbin/init/init.c,v >retrieving revision 1.33 >diff -u -r1.33 init.c >--- init.c 1999/06/18 09:08:09 1.33 >+++ init.c 1999/07/23 03:53:39 >@@ -935,8 +935,10 @@ > register char **argv = (char **) malloc(((strlen(command) + 1) / 2 + 1) > * sizeof (char *)); > >- if ((argv[argc++] = strk(command)) == 0) >- return 0; >+ if ((argv[argc++] = strk(command)) == 0) { >+ free(argv); >+ return (NULL); >+ } > while ((argv[argc++] = strk((char *) 0)) != NULL) > continue; > return argv; >@@ -1044,7 +1046,7 @@ > return (0); > } > if (sp->se_window) { >- free(sp->se_window); >+ free(sp->se_window); > free(sp->se_window_argv_space); > free(sp->se_window_argv); > }
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 12769
: 5304