X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ofproto%2Fpinsched.c;h=d749ee4e6f912cd71f1d75873cc45e94626c7533;hb=62471e59fccf3c48d75becfa12690e23bb683407;hp=6af2bb6765e2edcc18f46284f32fdfea3b01b17c;hpb=79c9f2ee7883b52860c76c3730725f5731402874;p=openvswitch diff --git a/ofproto/pinsched.c b/ofproto/pinsched.c index 6af2bb67..d749ee4e 100644 --- a/ofproto/pinsched.c +++ b/ofproto/pinsched.c @@ -70,7 +70,7 @@ dequeue_packet(struct pinsched *ps, struct ovs_queue *q, struct ofpbuf *packet = queue_pop_head(q); if (!q->n) { free(q); - port_array_set(&ps->queues, port_no, NULL); + port_array_delete(&ps->queues, port_no); } ps->n_queued--; return packet;