Explorar o código

Remove spurious bufferevent_free in worker.cc

stop_working() already frees the bufferevents, so don't double-free.
Ian Goldberg %!s(int64=14) %!d(string=hai) anos
pai
achega
8bcd316852
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      worker.cc

+ 0 - 1
worker.cc

@@ -144,7 +144,6 @@ static void dpconn_event_cb(struct bufferevent *bev, short events,
     } else if (events & (BEV_EVENT_EOF|BEV_EVENT_ERROR)) {
 	fprintf(stderr, "Closing connection to dpnode\n");
 	stop_working();
-	bufferevent_free(bev);
     }
 }