strdup before calling basename in ds_sds_dump_component_ref_as
strdup before calling basename in ds_sds_dump_component_ref_as

Not all basename implementations guarantee not to change the string.
Using the const string as is causes crashes on Windows.

mpreisler/openscap,jan-cerny/openscap,OpenSCAP/openscap,mpreisler/openscap,redhatrises/openscap,openprivacy/openscap,redhatrises/openscap,mpreisler/openscap,mpreisler/openscap,redhatrises/openscap,redhatrises/openscap,OpenSCAP/openscap,jan-cerny/openscap,OpenSCAP/openscap,jan-cerny/openscap,mpreisler/openscap,OpenSCAP/openscap,jan-cerny/openscap,openprivacy/openscap,openprivacy/openscap,redhatrises/openscap,openprivacy/openscap,openprivacy/openscap,OpenSCAP/openscap,jan-cerny/openscap,openprivacy/openscap,mpreisler/openscap,jan-cerny/openscap,OpenSCAP/openscap,redhatrises/openscap