This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] memory leak in libio/wfileops.c do_ftell_wide [BZ #17370]
- From: Tim Lammens <tim dot lammens at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Wed, 10 Sep 2014 22:21:23 +0200
- Subject: [PATCH] memory leak in libio/wfileops.c do_ftell_wide [BZ #17370]
- Authentication-results: sourceware.org; auth=none
Hi,
Here is a patch to fix the memory leak in libio/wfileops.c.
Regards,
Tim
diff --git a/libio/wfileops.c b/libio/wfileops.c
index f123add..4b8fda9 100644
--- a/libio/wfileops.c
+++ b/libio/wfileops.c
@@ -711,6 +711,7 @@ do_ftell_wide (_IO_FILE *fp)
return WEOF;
offset += outstop - out;
+ free(out);
}
/* We don't trust _IO_read_end to represent the current file offset