[PATCH] Fix 53360 - String leak in DCOPClient

Guillaume Laurent glaurent at telegraph-road.org
Sun Mar 9 00:27:39 GMT 2003


On Sunday 09 March 2003 01:14, Waldo Bastian wrote:

> should be if (vendor) free(vendor); because free doesn't like to free 0
> pointers, unlike delete.

No, free(0) is a no-op, just like delete. AFAIK this is standardized. I 
believe that may not be true on some old platforms, though, but at least it's 
true with glibc (cf. free(3)).

-- 
					Guillaume.
					http://www.telegraph-road.org




More information about the kde-core-devel mailing list