The memory leaks went away now, and my hash doesn't seem to be getting corrupted. I'd still like somebody to verify the correctness of this though.void add_entry(hash) HV * hash PREINIT: SV * key; SV * val; CODE: key = sv_newmortal(); sv_setiv( dt, (IV)someint ); val = newSViv( (IV)otherint ); hv_store_ent( hash, key, val, 0 );
In reply to Re: hv_store_ent
by bmdhacks
in thread hv_store_ent
by bmdhacks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |