whether forget to free memory?

2001-05-18 Thread fanlb
there's some code like following in file url.c : /* Check whether two URL-s are equivalent, i.e. pointing to the same location. Uses parseurl to parse them, and compares the canonical forms. Returns 1 if the URL1 is equivalent to URL2, 0 otherwise. Also return 0 on error. */ int

Re: whether forget to free memory?

2001-05-18 Thread Hrvoje Niksic
fanlb [EMAIL PROTECTED] writes: Would u1 been leaved in memory,if allocation for u1 were succeeded but u2 failed? If any memory allocation fails, Wget exits with an appropriate error message.

Re: whether forget to free memory?

2001-05-18 Thread Hrvoje Niksic
Edward J. Sabol [EMAIL PROTECTED] writes: I think there's a valid point here. The memory allocation part of the question was misleading though. There is a memory leak in url_equal() if the second parseurl() returns a value other than URLOK. Ah, right, of course. But I guess this is a