[fix] remove invalid free
authorFabien Le Mentec <texane@gmail.com>
Fri, 14 Oct 2011 20:47:08 +0000 (15:47 -0500)
committerFabien Le Mentec <texane@gmail.com>
Fri, 14 Oct 2011 20:47:08 +0000 (15:47 -0500)
src/stlink-sg.c

index ac6a6cf81891de4b42998208cafd8abd9d27ec72..f8865e1e4e6b9e061836db44d59e6541be122303 100644 (file)
@@ -119,9 +119,7 @@ void _stlink_sg_close(stlink_t *sl) {
     if (sl) {
         struct stlink_libsg *slsg = sl->backend_data;
         scsi_pt_close_device(slsg->sg_fd);
-        // CAUTION!? s this right?
         free(slsg);
-        free(sl);
     }
 }