Have created a pull request for this: https://github.com/sigrokproject/libsigrok/pull/162 Subject: fixing memory leak in lecroy-xstream The character data used from the sr_scpi_get_string routine performs a strtok and is passed into several pointers, and incorrectly g_free'd resulting in invalid pointer data being used, and potential memory leaks/crashes.