diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2017-01-09 14:02:19 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-01-09 14:02:19 +0100 |
commit | 838cfa352cf0d7146976af5548866393aeeb8862 (patch) | |
tree | 17faa1902917e7ce7976801eb18b73ff5fac4b3f /newlib/libc/sys/linux/linuxthreads/getcpuclockid.c | |
parent | 61f181d6b872e6f37b04fed790fa903a312a3795 (diff) | |
download | cygnal-838cfa352cf0d7146976af5548866393aeeb8862.tar.gz cygnal-838cfa352cf0d7146976af5548866393aeeb8862.tar.bz2 cygnal-838cfa352cf0d7146976af5548866393aeeb8862.zip |
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>
Diffstat (limited to 'newlib/libc/sys/linux/linuxthreads/getcpuclockid.c')
0 files changed, 0 insertions, 0 deletions