cisco / libfnr

FNR is a small domain block cipher to encrypt small objects ( < 128 bits )
GNU Lesser General Public License v2.1
40 stars 16 forks source link

Static memory allocation for ipc4_to_str function #2

Closed fffaraz closed 9 years ago

fffaraz commented 9 years ago

I guess it's better this way. Mostly I was wondering if you accept pull requests...

sashank commented 9 years ago

the changes look ok , why are the free statements removed ?

fffaraz commented 9 years ago

Because memory for ip_address_str is not allocated dynamically using calloc or malloc anymore. It's in the stack of main function.

sashank commented 9 years ago

Thanks for the contribution