Added new asprintf macro to prevent memleaks.