bugfix: free sds.