Changeset 1508

Show
Ignore:
Timestamp:
01/13/08 22:50:15 (9 months ago)
Author:
common
Message:

libemu

  • sctest runs leakfree in graphmode
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libemu/trunk/testsuite/sctest.c

    r1507 r1508  
    18821882        emu_env_w32_free(env); 
    18831883        emu_env_linux_free(lenv); 
    1884         emu_free(e); 
     1884        emu_hashtable_free(eh); 
     1885        emu_graph_free(graph); 
    18851886        return 0; 
    18861887} 
     
    19871988 
    19881989        graph->vertex_destructor = instr_vertex_destructor; 
    1989       emu_graph_free(graph); 
     1990//    emu_graph_free(graph); 
    19901991        graph = sgraph; 
    19911992 
     
    20762077 
    20772078        graph->vertex_destructor = instr_vertex_destructor; 
    2078         emu_graph_free(graph); 
     2079        emu_graph_free(sgraph); 
    20792080//      emu_hashtable_free(eh); 
    20802081 
     
    23782379 
    23792380        emu_cpu_eip_set(cpu, cargos_lib_csi_regv(calib, CARGOS_LIB_EIP).val32); 
     2381        return 0; 
     2382#else 
     2383        printf("compiled without support for argos csi (libcargos)\n"); 
     2384        return -1; 
    23802385#endif 
    2381         return 0; 
     2386         
    23822387} 
    23832388 
     
    24932498 
    24942499        struct emu *e = emu_new(); 
    2495         prepare(e); 
    2496         test(e); 
     2500        if ( prepare(e) == 0 ) 
     2501               test(e); 
    24972502         
    24982503 
     2504        emu_free(e); 
    24992505 
    25002506//      dump_export_table(); 
     2507        if (opts.from_argos_csi) 
     2508                free(opts.from_argos_csi); 
     2509 
     2510        if (opts.graphfile) 
     2511                free(opts.graphfile); 
     2512 
     2513 
    25012514        return 0; 
    25022515}