Fix: sdp_free() bug introduced in commit bde8c0a045

Credits to csollet for reporting.
(cherry picked from commit a5e9f4bc818a94b282e7ccd10f44dec2d74a794e)