]> git.ipfire.org Git - thirdparty/util-linux.git/commit
ipcs: fix memleak in ipc_*_get_info functions
authorRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 13 Mar 2014 08:20:50 +0000 (09:20 +0100)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Thu, 13 Mar 2014 23:23:14 +0000 (00:23 +0100)
commit3d5fcdb19acfa3f8b2ade005af4f7762e309f88f
treec8aba52fee12e1527fced51df5ae5250b914b522
parent5078a0d31d17d95abef980ab719ffc5e5a7ba863
ipcs: fix memleak in ipc_*_get_info functions

In case of error (maxid < 0) we do not enter following for loop. It will
return 0 and free the structs afterwards because i is still 0.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
sys-utils/ipcutils.c