~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_realloc.c

  • Committer: Monty Taylor
  • Date: 2008-10-02 01:27:37 UTC
  • Revision ID: monty@inaugust.com-20081002012737-3uxmdovii2l14uqe
Removed unused crud.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
  if (!(point = malloc(size)))
40
40
  {
41
41
    if (my_flags & MY_FREE_ON_ERROR)
42
 
      free(oldpoint);
 
42
      my_free(oldpoint,my_flags);
43
43
    if (my_flags & MY_HOLD_ON_ERROR)
44
44
      return(oldpoint);
45
45
    my_errno=errno;
52
52
    free(oldpoint);
53
53
  }
54
54
#else
55
 
  if ((point= (unsigned char*) realloc(oldpoint,size)) == NULL)
 
55
  if ((point= (uchar*) realloc(oldpoint,size)) == NULL)
56
56
  {
57
57
    if (my_flags & MY_FREE_ON_ERROR)
58
 
      free(oldpoint);
 
58
      my_free(oldpoint, my_flags);
59
59
    if (my_flags & MY_HOLD_ON_ERROR)
60
60
      return(oldpoint);
61
61
    my_errno=errno;