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:
Soeren Apel 2017-05-04 18:40:39 +02:00
parent b853eb76fb
commit b7939d7cac
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,8 @@ static gboolean stream_session_data(struct sr_dev_inst *sdi)
return TRUE;
} else {
/* We got all the chunks, finish up. */
g_free(vdev->capturefile);
vdev->capturefile = NULL;
return FALSE;
}
}