[sr-dev] git:master:a361686b: purple: Fix multiple memory leaks in DB code