diff --git a/src/rpc/gendispatch.pl b/src/rpc/gendispatch.pl index 039d785edd4ac4867c5979e7da0ec46b242b39d2..b7ac3c8abcfddb7f93d96ec5c49063d8ff99d574 100755 --- a/src/rpc/gendispatch.pl +++ b/src/rpc/gendispatch.pl @@ -1480,6 +1480,8 @@ elsif ($opt_k) { if ($call->{streamflag} ne "none") { print " virNetClientRemoveStream(priv->client, netst);\n"; print " virNetClientStreamFree(netst);\n"; + print " st->driver = NULL;\n"; + print " st->privateData = NULL;\n"; } print " goto done;\n";