[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 00:39 +0100, Adam Pi?tyszek wrote:
> @@ -776,6 +800,7 @@ static int proxy_write(int fd, unsigned char *buf,
> size_t len)
>  
>                 count += i;
>         }
> +       free(buf);
>         return 0;
>  }

That one's a bug too; 'buf' is usually static, on the stack of the
caller. It's not for the proxy_write() function to free it.

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse at intel.com                              Intel Corporation




[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