Fix: sdp_free() bug introduced in commit bde8c0a045

Credits to csollet for reporting.
Merge remote branch 'upstream/master'