They had to serve out their sentence! Through a series of changes in law, 5,000-15,000 homosexuals were shipped to concentration camps and identified by pink triangles during WWII. At the time, the persecution of homosexuals wasn’t well known.
When the concentration camps were liberated, many of the homosexual prisoners were sent to serve out their sentence under Paragraph 175. In 1950, East Germany abolished the law, but West Germany enforced and confirmed it. It wasn’t until 1969 that some changes began to take place giving homosexuals more equal rights in West Germany.