forked from pool/libvirt
42 lines
1.2 KiB
Diff
42 lines
1.2 KiB
Diff
|
Index: libvirt-0.7.1/src/xen_inotify.c
|
||
|
===================================================================
|
||
|
--- libvirt-0.7.1.orig/src/xen_inotify.c
|
||
|
+++ libvirt-0.7.1/src/xen_inotify.c
|
||
|
@@ -463,7 +463,6 @@ xenInotifyOpen(virConnectPtr conn ATTRIB
|
||
|
DEBUG0("Failed to add inotify handle, disabling events");
|
||
|
}
|
||
|
|
||
|
- virConnectRef(conn);
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
@@ -486,7 +485,6 @@ xenInotifyClose(virConnectPtr conn)
|
||
|
if (priv->inotifyWatch != -1)
|
||
|
virEventRemoveHandle(priv->inotifyWatch);
|
||
|
close(priv->inotifyFD);
|
||
|
- virUnrefConnect(conn);
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
Index: libvirt-0.7.1/src/xs_internal.c
|
||
|
===================================================================
|
||
|
--- libvirt-0.7.1.orig/src/xs_internal.c
|
||
|
+++ libvirt-0.7.1/src/xs_internal.c
|
||
|
@@ -1139,8 +1139,6 @@ int xenStoreAddWatch(virConnectPtr conn,
|
||
|
list->watches[n] = watch;
|
||
|
list->count++;
|
||
|
|
||
|
- conn->refs++;
|
||
|
-
|
||
|
return xs_watch(priv->xshandle, watch->path, watch->token);
|
||
|
}
|
||
|
|
||
|
@@ -1190,7 +1188,6 @@ int xenStoreRemoveWatch(virConnectPtr co
|
||
|
; /* Failure to reduce memory allocation isn't fatal */
|
||
|
}
|
||
|
list->count--;
|
||
|
- virUnrefConnect(conn);
|
||
|
return 0;
|
||
|
}
|
||
|
}
|