test-stream: Silence memory leak report.
AddressSanitizer reports this as a leak.
Let's just free the memory before exiting to avoid the noise.
'stream_close()' doesn't update the pointer, so this will not
change the return value.
Acked-by: Flavio Leitner
Acked-by: Paolo Valerio
@@ -42,5 +42,6 @@ main(int argc, char *argv[])
VLOG_ERR("stream_open_block(%s) failure: %s",
argv[1], ovs_strerror(error));
}
+ stream_close(stream);
return (error || !stream) ? 1 : 0;
}
