rpms/libraw1394/devel libraw1394-juju-no-double-free-on-shutdown.patch, NONE, 1.1

Jarod Wilson (jwilson) fedora-extras-commits at redhat.com
Sun Oct 21 19:24:54 UTC 2007


Author: jwilson

Update of /cvs/pkgs/rpms/libraw1394/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3561

Added Files:
	libraw1394-juju-no-double-free-on-shutdown.patch 
Log Message:
Add patch left out of last commit...

libraw1394-juju-no-double-free-on-shutdown.patch:

--- NEW FILE libraw1394-juju-no-double-free-on-shutdown.patch ---
diff -Naurp libraw1394-1.3.0/juju/raw1394-iso.c libraw1394-1.3.0.fix/juju/raw1394-iso.c
--- libraw1394-1.3.0/juju/raw1394-iso.c	2007-10-19 16:05:09.000000000 -0400
+++ libraw1394-1.3.0.fix/juju/raw1394-iso.c	2007-10-19 17:14:40.000000000 -0400
@@ -394,6 +394,7 @@ iso_init(raw1394handle_t handle, int typ
 	handle->iso.fd = open(handle->local_filename, O_RDWR);
 	if (handle->iso.fd < 0) {
 		free(handle->iso.packets);
+		handle->iso.packets = NULL;
 		return -1;
 	}
 
@@ -404,6 +405,7 @@ iso_init(raw1394handle_t handle, int typ
 		      handle->iso.fd, &ep) < 0) {
 		close(handle->iso.fd);
 		free(handle->iso.packets);
+		handle->iso.packets = NULL;
 		return -1;
 	}
 
@@ -417,6 +419,8 @@ iso_init(raw1394handle_t handle, int typ
 	if (retval < 0) {
 		close(handle->iso.fd);
 		free(handle->iso.packets);
+		handle->iso.packets = NULL;
+		printf("ioctl call failed, retval = %d\n", retval);
 		return retval;
 	}
 
@@ -427,6 +431,7 @@ iso_init(raw1394handle_t handle, int typ
 	if (handle->iso.buffer == MAP_FAILED) {
 		close(handle->iso.fd);
 		free(handle->iso.packets);
+		handle->iso.packets = NULL;
 		return -1;
 	}
 




More information about the fedora-extras-commits mailing list