~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_realloc.c

  • Committer: Brian Aker
  • Date: 2008-08-10 16:57:26 UTC
  • Revision ID: brian@tangent.org-20080810165726-mc1660l11a5vkv69
libdrizzle has ulong removed.

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;