~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to lib/db/dbmi_base/table.c

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
    table->columns = (dbColumn *) db_calloc(sizeof(dbColumn), ncols);
23
23
    if (table->columns == NULL) {
24
 
        free(table);
 
24
        db_free(table);
25
25
        return (table = NULL);
26
26
    }
27
27
    table->numColumns = ncols;
58
58
    for (i = 0; i < table->numColumns; i++)
59
59
        db_free_column(&table->columns[i]);
60
60
    if (table->columns)
61
 
        free(table->columns);
62
 
    free(table);
 
61
        db_free(table->columns);
 
62
    db_free(table);
63
63
}
64
64
 
65
65
/*!
361
361
        }
362
362
    }
363
363
    db_append_string(sql, " )");
364
 
    G_debug(3, db_get_string(sql));
 
364
    G_debug(3, "sql statement: %s", db_get_string(sql));
365
365
 
366
366
    return DB_OK;
367
367
}