mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
Fix windres memory leak
* windres.c (open_file_search): Free path buffer on failure.
This commit is contained in:
parent
77ab336ea1
commit
137d1369ac
@ -1,3 +1,7 @@
|
||||
2014-12-09 Chen Gang <gang.chen.5i5j@gmail.com>
|
||||
|
||||
* windres.c (open_file_search): Free path buffer on failure.
|
||||
|
||||
2014-12-08 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR binutils/17531
|
||||
|
@ -204,6 +204,7 @@ open_file_search (const char *filename, const char *mode, const char *errmsg,
|
||||
*real_filename = n;
|
||||
return e;
|
||||
}
|
||||
free (n);
|
||||
|
||||
if (errno != ENOENT)
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user