Name field is now a pre-allocated array - free is no longer necessary.
Fix issue leading to segfault during interface shortening in Single runmode.
TmThreadDeinitMC(tv);
- if (tv->name) {
- SCFree(tv->name);
- }
if (tv->thread_group_name) {
SCFree(tv->thread_group_name);
}
const char *live_dev)
{
int nlive = LiveGetDeviceCount();
+ const char *live_dev_c = NULL;
void *aconf;
if (nlive > 1) {
if (live_dev != NULL) {
aconf = ConfigParser(live_dev);
+ live_dev_c = live_dev;
} else {
- const char *live_dev_c = LiveGetDeviceName(0);
+ live_dev_c = LiveGetDeviceName(0);
aconf = ConfigParser(live_dev_c);
/* \todo Set threads number in config to 1 */
}
recv_mod_name,
decode_mod_name,
thread_name,
- live_dev,
+ live_dev_c,
aconf,
1);
}