Moved FREE_SET_NULL to common.h
Added jid_destroy()