[Pkg-libvirt-commits] [libguestfs] 219/233: src/drives.c: Remove useless if-before-free.

Hilko Bengen bengen at moszumanska.debian.org
Wed Feb 19 21:12:30 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit f5de589966ae7f22a83d6ef6be6140ae68551a7b
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu Feb 13 21:41:12 2014 +0000

    src/drives.c: Remove useless if-before-free.
    
    Found by make syntax-check.
---
 src/drives.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/drives.c b/src/drives.c
index 733a6c4..2c85b52 100644
--- a/src/drives.c
+++ b/src/drives.c
@@ -104,8 +104,7 @@ create_overlay (guestfs_h *g, struct drive *drv)
   if (overlay == NULL)
     return -1;
 
-  if (drv->overlay)
-    free (drv->overlay);
+  free (drv->overlay);
   drv->overlay = overlay;
 
   return 0;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list