~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzleslap.cc

  • Committer: Monty Taylor
  • Date: 2008-10-06 01:30:47 UTC
  • Revision ID: monty@inaugust.com-20081006013047-6m2ejc0c4peye2k9
Removed my_free(). It turns out that it had been def'd to ignore the flags passed to it in the second arg anyway. Gotta love that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
400
400
 
401
401
  /* now free all the strings we created */
402
402
  if (opt_password)
403
 
    my_free(opt_password, MYF(0));
 
403
    free(opt_password);
404
404
 
405
 
  my_free(concurrency, MYF(0));
 
405
  free(concurrency);
406
406
 
407
407
  statement_cleanup(create_statements);
408
408
  for (x= 0; x < query_statements_count; x++)
409
409
    statement_cleanup(query_statements[x]);
410
 
  my_free(query_statements, MYF(0));
 
410
  free(query_statements);
411
411
  statement_cleanup(pre_statements);
412
412
  statement_cleanup(post_statements);
413
413
  option_cleanup(engine_options);
415
415
 
416
416
#ifdef HAVE_SMEM
417
417
  if (shared_memory_base_name)
418
 
    my_free(shared_memory_base_name, MYF(MY_ALLOW_ZERO_PTR));
 
418
    free(shared_memory_base_name);
419
419
#endif
420
420
  free_defaults(defaults_argv);
421
421
  my_end(my_end_arg);
502
502
  if (opt_csv_str)
503
503
    print_conclusions_csv(&conclusion);
504
504
 
505
 
  my_free(head_sptr, MYF(0));
 
505
  free(head_sptr);
506
506
 
507
507
}
508
508
 
730
730
    if (argument)
731
731
    {
732
732
      char *start= argument;
733
 
      my_free(opt_password, MYF(MY_ALLOW_ZERO_PTR));
 
733
      free(opt_password);
734
734
      opt_password= my_strdup(argument,MYF(MY_FAE));
735
735
      while (*argument) *argument++= 'x';    /* Destroy argument */
736
736
      if (*start)
1088
1088
    }
1089
1089
 
1090
1090
    if (num_blob_cols_size > HUGE_STRING_LENGTH)
1091
 
      my_free(blob_ptr, MYF(0));
 
1091
      free(blob_ptr);
1092
1092
  }
1093
1093
 
1094
1094
  insert_string.append(")", 1);
1474
1474
      tmp_string[sbuf.st_size]= '\0';
1475
1475
      my_close(data_file,MYF(0));
1476
1476
      parse_delimiter(tmp_string, &create_statements, delimiter[0]);
1477
 
      my_free(tmp_string, MYF(0));
 
1477
      free(tmp_string);
1478
1478
    }
1479
1479
    else if (create_string)
1480
1480
    {
1513
1513
      if (user_supplied_query)
1514
1514
        actual_queries= parse_delimiter(tmp_string, &query_statements[0],
1515
1515
                                        delimiter[0]);
1516
 
      my_free(tmp_string, MYF(0));
 
1516
      free(tmp_string);
1517
1517
    }
1518
1518
    else if (user_supplied_query)
1519
1519
    {
1545
1545
    if (user_supplied_pre_statements)
1546
1546
      (void)parse_delimiter(tmp_string, &pre_statements,
1547
1547
                            delimiter[0]);
1548
 
    my_free(tmp_string, MYF(0));
 
1548
    free(tmp_string);
1549
1549
  }
1550
1550
  else if (user_supplied_pre_statements)
1551
1551
  {
1577
1577
    if (user_supplied_post_statements)
1578
1578
      (void)parse_delimiter(tmp_string, &post_statements,
1579
1579
                            delimiter[0]);
1580
 
    my_free(tmp_string, MYF(0));
 
1580
    free(tmp_string);
1581
1581
  }
1582
1582
  else if (user_supplied_post_statements)
1583
1583
  {
1674
1674
  if (primary_keys_number_of)
1675
1675
  {
1676
1676
    for (counter= 0; counter < primary_keys_number_of; counter++)
1677
 
      my_free(primary_keys[counter], MYF(0));
 
1677
      free(primary_keys[counter]);
1678
1678
 
1679
 
    my_free(primary_keys, MYF(0));
 
1679
    free(primary_keys);
1680
1680
  }
1681
1681
 
1682
1682
  return 0;
2117
2117
  pthread_cond_signal(&count_threshhold);
2118
2118
  pthread_mutex_unlock(&counter_mutex);
2119
2119
 
2120
 
  my_free(con, MYF(0));
 
2120
  free(con);
2121
2121
 
2122
2122
  return(0);
2123
2123
}
2419
2419
  {
2420
2420
    nptr= ptr->next;
2421
2421
    if (ptr->string)
2422
 
      my_free(ptr->string, MYF(0));
 
2422
      free(ptr->string);
2423
2423
    if (ptr->option)
2424
 
      my_free(ptr->option, MYF(0));
2425
 
    my_free(ptr, MYF(0));
 
2424
      free(ptr->option);
 
2425
    free(ptr);
2426
2426
  }
2427
2427
}
2428
2428
 
2437
2437
  {
2438
2438
    nptr= ptr->next;
2439
2439
    if (ptr->string)
2440
 
      my_free(ptr->string, MYF(0));
2441
 
    my_free(ptr, MYF(0));
 
2440
      free(ptr->string);
 
2441
    free(ptr);
2442
2442
  }
2443
2443
}
2444
2444