[PATCH] Initial work on automatically reallocated buffer size for CSD script

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

 



On Fri, 2010-02-12 at 15:24 +0100, Adam Pi?tyszek wrote:
> In the above chunk you are freeing the form_buf, but the next if can
> go back to the piece of code (tagged with "redirect:"), which reuses
> the form_buf and even might try to free it again. I propose to move
> move these "free(form_buf); form_buf = NULL;" lines after the goto
> statement.

You didn't do that -- you put it in two places instead. Why?

You've also done the C99 thing of putting variable declarations in the
middle of functions in a couple of places. I suspect we won't get away
with that on some systems, so I'll change that.

-- 
dwmw2




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux