~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/column.cc

  • Committer: Brian Aker
  • Date: 2011-12-19 17:01:31 UTC
  • mto: (2478.1.1 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2482.
  • Revision ID: brian@tangent.org-20111219170131-kg394kzsdpebm6g6
Mark all cases where you are using realloc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
365
365
    column= new (std::nothrow) (drizzle_column_st);
366
366
    if (column == NULL)
367
367
    {
368
 
      drizzle_set_error(result->con->drizzle, "drizzle_column_create",
369
 
                        "malloc");
 
368
      drizzle_set_error(result->con->drizzle, __func__, "Failed to allocate.");
370
369
      return NULL;
371
370
    }
372
371
 
700
699
    result->column_buffer= new (std::nothrow) drizzle_column_st[result->column_count];
701
700
    if (result->column_buffer == NULL)
702
701
    {
703
 
      drizzle_set_error(result->con->drizzle, __func__, "malloc");
 
702
      drizzle_set_error(result->con->drizzle, __func__, "Failed to allocate.");
704
703
 
705
704
      return DRIZZLE_RETURN_MEMORY;
706
705
    }