Changeset 1551 in svn for trunk/processor/foot.m4


Ignore:
Timestamp:
2014-11-08T07:38:45Z (5 years ago)
Author:
Xuefer
Message:

merge stack/vector to 1 impl, avoid possible memory leak using malloc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/foot.m4

    r1470 r1551  
    1313    processor.relocatediff = storage->relocatediff;
    1414
    15     IFAUTOCHECK(`xc_stack_init(&processor.allocsizes);')
     15    IFAUTOCHECK(`xc_vector_init(unsigned long, &processor.allocsizes, 0);')
    1616
    1717    /* calc size */ {
     
    3939    )
    4040
    41     IFAUTOCHECK(`xc_stack_reverse(&processor.allocsizes);')
     41    IFAUTOCHECK(`xc_vector_reverse(&processor.allocsizes);')
    4242    /* store {{{ */
    4343    {
     
    7878    /* }}} */
    7979
    80     IFAUTOCHECK(`xc_stack_destroy(&processor.allocsizes);')
     80    IFAUTOCHECK(`xc_vector_destroy(&processor.allocsizes);')
    8181
    8282    return dst;
Note: See TracChangeset for help on using the changeset viewer.