X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fblockdev.c;h=d056abef1739de7b9e9aab118c138bae403e11e5;hb=d81c0829ea4a99aadb98df37be9543a973269041;hp=3df1807dc53d84ff02114613107b6a7dfd4efc5a;hpb=9e0b31a2af26b8d58a44dd80993a5e73d4942307;p=libguestfs.git diff --git a/daemon/blockdev.c b/daemon/blockdev.c index 3df1807..d056abe 100644 --- a/daemon/blockdev.c +++ b/daemon/blockdev.c @@ -13,7 +13,7 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -68,11 +68,13 @@ call_blockdev (const char *device, const char *switc, int extraarg, int prints) if (sscanf (out, "%" SCNi64, &rv) != 1) { reply_with_error ("%s: expected output, but got nothing", argv[0]); free (out); + free (err); return -1; } } free (out); + free (err); return rv; }