From: Matthias Bolte Date: Thu, 10 Dec 2009 23:54:49 +0000 (+0100) Subject: Fix memory leak in virStorageBackendCopyToFD X-Git-Tag: v0.7.5~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27ba0ad905a7bb019527929a82bb0999e6724e70;p=thirdparty%2Flibvirt.git Fix memory leak in virStorageBackendCopyToFD --- diff --git a/src/storage/storage_backend.c b/src/storage/storage_backend.c index a3b4d5aa97..9dc801c4f6 100644 --- a/src/storage/storage_backend.c +++ b/src/storage/storage_backend.c @@ -198,6 +198,8 @@ cleanup: if (inputfd != -1) close(inputfd); + VIR_FREE(buf); + return ret; }