Arthur Marble writes ("Bug#812718: chiark-tcl: FTBFS with clang instead of 
gcc"):
> Detected this kind of error:
> http://clang.debian.net/status.php?version=3.6.0&key=VARIABLE_UNINITIALIZED_HERE
> 
> Full build log is available here:
> http://clang.debian.net/logs/2015-03-25/chiark-tcl_1.1.3_unstable_clang.log
> 
> I have attached a patch to fix this error.

Thanks.  The bug is real in the sense that I should be using offsetof
or some such.

But I'm afraid the patch is quite wrong.  Memory for hd is allocated
on the immediately following line.  Your patch introduces a memory
leak.

Thanks,
Ian.

Reply via email to