Fix freeing sc in error branch for !LINKSTR interfaces.

(no impact on this repo)