Changeset 7814:19e061cffeea


Ignore:
Timestamp:
12/19/07 20:50:33 (6 years ago)
Author:
mabshoff@…
Branch:
default
Message:

Fix memleak in binary in graphs/graph_fast.pyx (#1572)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sage/graphs/graph_fast.pyx

    r7161 r7814  
    244244    mpz_init(i) 
    245245    mpz_set_ui(i,n) 
    246     return mpz_get_str(NULL, 2, i) 
     246    cdef char* s=mpz_get_str(NULL, 2, i) 
     247    t=str(s) 
     248    free(s) 
     249    mpz_clear(i) 
     250    return t 
    247251 
    248252def R(x): 
Note: See TracChangeset for help on using the changeset viewer.