IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 30, 2011, 10:24:51 AM (15 years ago)
Author:
bills
Message:

Fix problem where magictool does not apply the label to the input nodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/magictool.c

    r30594 r31097  
    873873        return false;
    874874    }
    875     psFree(whereString);
    876875    psFree(query);
    877876
     
    915914            }
    916915
    917             whereString = NULL;
    918             psStringAppend(&whereString, "\nAND (magic_id = %" PRId64 ")", magic_id);
    919             if (!p_psDBRunQueryF(config->dbh, query, whereString )) {
     916            psString whereString2 = NULL;
     917            psStringAppend(&whereString2, "\nAND (magic_id = %" PRId64 ")", magic_id);
     918            if (!p_psDBRunQueryF(config->dbh, query, whereString2 )) {
    920919                psError(PS_ERR_UNKNOWN, false, "database error");
    921                 psFree(whereString);
     920                psFree(whereString2);
    922921                psFree(query);
    923922                return false;
    924923            }
    925             psFree(whereString);
     924            psFree(whereString2);
    926925            psArray *magicTree = p_psDBFetchResult(config->dbh);
    927926            if (!magicTree) {
     
    10221021        return false;
    10231022    }
     1023    psFree(whereString);
    10241024    psFree(query);
    10251025
Note: See TracChangeset for help on using the changeset viewer.