fix minor mem leak in SOCP example