]> sourceware.org Git - newlib-cygwin.git/commit
Don't free statically allocated sys_privs
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 9 Jan 2017 13:02:19 +0000 (14:02 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 9 Jan 2017 13:02:19 +0000 (14:02 +0100)
commit838cfa352cf0d7146976af5548866393aeeb8862
tree17faa1902917e7ce7976801eb18b73ff5fac4b3f
parent61f181d6b872e6f37b04fed790fa903a312a3795
Don't free statically allocated sys_privs

commit 67fd2101 introduced a bad bug.  Changing sys_privs to a static
area and just returning a pointer is nice... *if* the calling code doesn't
call free() on it.  Make sure callers check pointer for sys_privs and
refrain from calling free, if so.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/sec_auth.cc
This page took 0.029067 seconds and 5 git commands to generate.