FreeBSD Bugzilla – Attachment 167620 Details for
Bug 207626
[cam] Memory leak in ctl.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix the memory leak
pr207626.patch (text/plain), 454 bytes, created by
Shawn Webb
on 2016-03-02 02:37:45 UTC
(
hide
)
Description:
Patch to fix the memory leak
Filename:
MIME Type:
Creator:
Shawn Webb
Created:
2016-03-02 02:37:45 UTC
Size:
454 bytes
patch
obsolete
>diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c >index 1101d02..70bf669 100644 >--- a/sys/cam/ctl/ctl.c >+++ b/sys/cam/ctl/ctl.c >@@ -2445,6 +2443,8 @@ ctl_copyin_args(int num_args, struct ctl_be_arg *uargs, > && (tmpptr[args[i].vallen - 1] != '\0')) { > snprintf(error_str, error_str_len, "Argument " > "%d value is not NUL-terminated", i); >+ free(tmpptr, M_CTL); >+ tmpptr = NULL; > goto bailout; > } > args[i].kvalue = tmpptr;
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 207626
: 167620