Maybe fixes memory leak in basic_publish.  Closes #38