IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 23, 2006, 2:19:35 PM (20 years ago)
Author:
jhoblitt
Message:

fix a memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/glueforge/templates/psdb/selectrowobjects.tt

    r6171 r7662  
    2525
    2626    for (i = 0; i < rowSet->n; i++) {
    27         psArrayAdd(returnSet, 0, [% table.namespace %]ObjectFromMetadata(rowSet->data[i]));
     27        [% table.object_name %] *object = [% table.namespace %]ObjectFromMetadata(rowSet->data[i]));
     28        psArrayAdd(returnSet, 0, object);
     29        psFree(object);
    2830    }
    2931
Note: See TracChangeset for help on using the changeset viewer.