Skip to content

Commit

Permalink
HBSD: Fix ctl memory leak
Browse files Browse the repository at this point in the history
Bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207626

Signed-off-by: CTurt <cturt@hardenedbsd.org>
  • Loading branch information
CTurt committed Mar 1, 2016
1 parent 84e9ab1 commit 88bf329
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/cam/ctl/ctl.c
Expand Up @@ -2445,6 +2445,7 @@ 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);
goto bailout;
}
args[i].kvalue = tmpptr;
Expand Down

0 comments on commit 88bf329

Please sign in to comment.