]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix memory leak in virStorageBackendCopyToFD
authorMatthias Bolte <matthias.bolte@googlemail.com>
Thu, 10 Dec 2009 23:54:49 +0000 (00:54 +0100)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Fri, 11 Dec 2009 15:36:45 +0000 (16:36 +0100)
src/storage/storage_backend.c

index a3b4d5aa970e1480f122dab9fa8f663828757486..9dc801c4f6af74a771469f259e925ee17ea37f02 100644 (file)
@@ -198,6 +198,8 @@ cleanup:
     if (inputfd != -1)
         close(inputfd);
 
+    VIR_FREE(buf);
+
     return ret;
 }