Fix use-after-free error.
authorBen Pfaff <blp@nicira.com>
Mon, 6 Oct 2008 23:25:56 +0000 (16:25 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 9 Oct 2008 22:53:05 +0000 (15:53 -0700)
commite4e4a6be82cf0a4feef45407305b360b405ed57e
tree861577dd6f1f2f20ae9021f8f822b05ed696c755
parent4d0a3296522f2695a6f8b769100615ada1a54315
Fix use-after-free error.

rconn_destroy() decrements the n_queued counters that are set up by
rconn_send(), so we need to destroy the rconn before we destroy anything
that used it.

(This system is more error-prone than I imagined.)
controller/controller.c