~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_malloc.c

  • 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:
25
25
 
26
26
  if (!size)
27
27
    size=1;                                     /* Safety */
28
 
  if ((point = (char*)malloc(size)) == NULL)
 
28
  if ((point = malloc(size)) == NULL)
29
29
  {
30
30
    my_errno=errno;
31
31
    if (my_flags & MY_FAE)
41
41
} /* my_malloc */
42
42
 
43
43
 
44
 
        /* Free memory allocated with my_malloc */
45
 
        /*ARGSUSED*/
46
 
 
47
 
void my_no_flags_free(void* ptr)
48
 
{
49
 
  if (ptr)
50
 
    free(ptr);
51
 
  return;
52
 
} /* my_free */
53
 
 
54
 
 
55
44
        /* malloc and copy */
56
45
 
57
46
void* my_memdup(const void *from, size_t length, myf my_flags)