~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/qcache.cc

  • Committer: Stewart Smith
  • Date: 2008-12-16 02:52:17 UTC
  • mfrom: (691 testable)
  • mto: This revision was merged to the branch mainline in revision 692.
  • Revision ID: stewart@flamingspork.com-20081216025217-19m1kbv14v98ipye
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
{
26
26
  qcache_t *p;
27
27
 
28
 
  p= (qcache_t *) malloc(sizeof(qcache_t));
 
28
  p= new qcache_t;
29
29
  if (p == NULL) return 1;
30
30
  memset(p, 0, sizeof(qcache_t));
31
31
 
45
45
  return 0;
46
46
 
47
47
err:
48
 
  free(p);
 
48
  delete p;
49
49
  return 1;
50
50
}
51
51
 
64
64
    }
65
65
  }
66
66
 
67
 
  if (p) free(p);
 
67
  if (p) delete p;
68
68
 
69
69
  return 0;
70
70
}