sdp: fix memory leaks

Change-Id: Ie602dd9f99eeadbdbd36ff085307fa151aa54b77