what the fuck were they smoking

/*
Function to free dboptions hash element
*/

extern “C” void free_dbopt(void *dbopt);

void free_dbopt(void *dbopt)
{
free((unsigned char*) dbopt);
}

2 Responses to “what the fuck were they smoking”

  1. Antony Curtis says:

    LOL yeah… I have seen that and removed it in one of my experimental branches many months ago.
    It’s a good WTF…

  2. Mark Leith says:

    Heh yea, I saw this *just yesterday* myself as well – because of:

    http://bugs.mysql.com/bug.php?id=42226

    Interestingly, write_db_opt() and load_db_opt() can most probably step on each others toes as well.

    There seems to be a whole catalogue of errors around this.

Leave a Reply