MOO-cows Mailing List Archive

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

possible memory leak in 1.8.0p1



In utils.c, binary_to_raw_bytes():

    const char         *ptr = binary;

    if (!s)		<- why 'if (!s)'? Isn't s always zero?
        s = new_stream(100);
    else
        reset_stream(s);
,

                    cc = cc * 16 + (c <= '9' ? c - '0' : c - 'A' + 10);
                else
                    return 0;	<- not freed Stream s...
            }


	-- Ahn

-----
Ahn, Jin-su    				email:	jsahn@ee.snu.ac.kr
School of Electrical Engineering	LambdaMOO: Deedlit(#103811)
Seoul National University, Korea



Home | Subject Index | Thread Index