On Saturday 09 June 2007, Alex Riesen wrote: > On 6/9/07, Johan Herland <johan@xxxxxxxxxxx> wrote: > > + if (parse_and_verify_tag_buffer(0, buffer, size, 1)) { > > + free(buffer); > > + die("invalid tag data file"); > > This, and the similar one below are useless. You're destroying the > process, what do you free that buffer for? Either handle the error > case or do not needlessly complicate your change, which really > also absolutely unneeded. Well, I was taught to treat my memory with care. Right now it doesn't make any difference in practice (except that Valgrind might be a bit happier with it), but in the future -- with the libifaction effort and whatnot -- you never know what might happen to this piece of code, and I'd like to stay on the safe side. Feel free to drop this patch from the series if I'm the only one thinking like this. ...Johan -- Johan Herland, <johan@xxxxxxxxxxx> www.herland.net - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html