Skip to content

Commit

Permalink
Removed memset() after free() causing sporadic crashes when unpluggin…
Browse files Browse the repository at this point in the history
…g devices

Signed-off-by: Benn Snyder <benn.snyder@gmail.com>
  • Loading branch information
piedar committed Feb 1, 2014
1 parent 82f2b18 commit f6cb19e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/usb_libusb10.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,6 @@ FN_INTERNAL int fnusb_stop_iso(fnusb_dev *dev, fnusb_isoc_stream *strm)
free(strm->xfers);

FN_FLOOD("fnusb_stop_iso() freed buffers and stream\n");
memset(strm, 0, sizeof(*strm));
FN_FLOOD("fnusb_stop_iso() done\n");
return 0;
}
Expand Down

0 comments on commit f6cb19e

Please sign in to comment.