strsave() is just a poor implementation of strdup(3). Use strdup(3).