Changeset 15969:0fed23aa1da5


Ignore:
Timestamp:
01/07/08 16:16:49 (5 years ago)
Author:
Willem Jan Palenstijn <wpalenst@…>
Branch:
default
Message:

Trac #11495: fix memleak in ZZ_pE_to_ZZ_pX in ntl_wrap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c_lib/src/ntl_wrap.cpp

    r13523 r15969  
    842842struct ZZ_pX ZZ_pE_to_ZZ_pX(struct ZZ_pE x) 
    843843{ 
    844   ZZ_pX *ans = new ZZ_pX(rep(x)); 
    845   return *ans; 
     844  return ZZ_pX(rep(x)); 
    846845} 
    847846 
Note: See TracChangeset for help on using the changeset viewer.