CNMAT / libo

10 stars 4 forks source link

check if arg1 free rules with goto cleanup in assignToBundleMember #18

Closed ramagottfried closed 3 years ago

ramagottfried commented 6 years ago

free_arg1 should probably be initialized higher in the function --> https://github.com/CNMAT/libo/blob/master/osc_expr.c#L1853

but it's not clear to me yet, when arg1 should be freed as an atom_array

    cleanup:
        if(arg1 && free_arg1){
            osc_atom_array_u_free(arg1);
        }
maccallum commented 3 years ago

This is ok