lda_msgfree causing aborting program