devif: solarflare backend deallocated some memory twice
authorRoni Häcki <roni.haecki@inf.ethz.ch>
Mon, 28 Aug 2017 15:07:49 +0000 (17:07 +0200)
committerRoni Häcki <roni.haecki@inf.ethz.ch>
Mon, 28 Aug 2017 15:07:49 +0000 (17:07 +0200)
Signed-off-by: Roni Häcki <roni.haecki@inf.ethz.ch>

lib/devif/backends/net/solarflare/devif_backend_solarflare.c

index c8304d7..ac82291 100644 (file)
@@ -496,11 +496,6 @@ static errval_t sfn5122f_destroy(struct devq* queue)
     free(q->device);
     free(q->b);
 
-    err = devq_destroy(&(q->q));
-    if (err_is_fail(err)){
-        return err;
-    }
-
     err = sfn5122f_queue_free(q);
     if (err_is_fail(err)) {
         return err;