IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2006, 4:12:32 PM (20 years ago)
Author:
jhoblitt
Message:

VERSION 0.0.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/jhoblitt/ippdb/tests/alloc.c

    r8020 r8026  
    384384        pzPendingImfileRow *object;
    385385
    386         object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string"    );
     386        object = pzPendingImfileRowAlloc("a string", -32, "a string", "a string", "a string", "a string"    );
    387387
    388388        if (!object) {
     
    402402            exit(EXIT_FAILURE);
    403403        }
     404        if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) {
     405            psFree(object);
     406            exit(EXIT_FAILURE);
     407        }
    404408        if (strncmp(object->class_id, "a string", MAX_STRING_LENGTH)) {
    405409            psFree(object);
     
    450454        newImfileRow    *object;
    451455
    452         object = newImfileRowAlloc("a string", "a string", "a string"    );
    453 
    454         if (!object) {
    455             exit(EXIT_FAILURE);
    456         }
    457 
    458         if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
     456        object = newImfileRowAlloc("a string", "a string", "a string", "a string"    );
     457
     458        if (!object) {
     459            exit(EXIT_FAILURE);
     460        }
     461
     462        if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
     463            psFree(object);
     464            exit(EXIT_FAILURE);
     465        }
     466        if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) {
    459467            psFree(object);
    460468            exit(EXIT_FAILURE);
     
    557565        rawImfileRow    *object;
    558566
    559         object = rawImfileRowAlloc("a string", "a string", "a string", "a string"    );
    560 
    561         if (!object) {
    562             exit(EXIT_FAILURE);
    563         }
    564 
    565         if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
     567        object = rawImfileRowAlloc("a string", "a string", "a string", "a string", "a string"    );
     568
     569        if (!object) {
     570            exit(EXIT_FAILURE);
     571        }
     572
     573        if (strncmp(object->exp_id, "a string", MAX_STRING_LENGTH)) {
     574            psFree(object);
     575            exit(EXIT_FAILURE);
     576        }
     577        if (strncmp(object->class, "a string", MAX_STRING_LENGTH)) {
    566578            psFree(object);
    567579            exit(EXIT_FAILURE);
Note: See TracChangeset for help on using the changeset viewer.