De-init vdev->capturefile when done
Without doing this, re-reading the input file results in a segfault as the internal state machine becomes confused.
This commit is contained in:
parent
b853eb76fb
commit
b7939d7cac
|
@ -123,6 +123,8 @@ static gboolean stream_session_data(struct sr_dev_inst *sdi)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
} else {
|
} else {
|
||||||
/* We got all the chunks, finish up. */
|
/* We got all the chunks, finish up. */
|
||||||
|
g_free(vdev->capturefile);
|
||||||
|
vdev->capturefile = NULL;
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue