minor mem leak fix in auto_db  (pointer to pointer)