Re: [patch] lib/libc/yp/yp_all.c mem leak

2010-01-08 Thread Ted Unangst
On Fri, Jan 8, 2010 at 2:22 PM, patrick keshishian wrote: > On Fri, Jan 08, 2010 at 03:47:48PM +0300, Igor Zinovik wrote: >> Hello, t...@. >> >> A bit tricky code in yp_all.c `val' is not freed. It might be >> allocated but might be not freed >> when `key' allocation failed. >> >> Index: lib/li

Re: [patch] lib/libc/yp/yp_all.c mem leak

2010-01-08 Thread patrick keshishian
On Fri, Jan 08, 2010 at 03:47:48PM +0300, Igor Zinovik wrote: > Hello, t...@. > > A bit tricky code in yp_all.c `val' is not freed. It might be > allocated but might be not freed > when `key' allocation failed. > > Index: lib/libc/yp/yp_all.c > =

[patch] lib/libc/yp/yp_all.c mem leak

2010-01-08 Thread Igor Zinovik
Hello, t...@. A bit tricky code in yp_all.c `val' is not freed. It might be allocated but might be not freed when `key' allocation failed. Index: lib/libc/yp/yp_all.c === RCS file: /OpenBSD/src/lib/libc/yp/yp_all.c,v retrieving re