Go to file
Eric Paris 78d618422b libsemanage: semanage_store: do not leak on strdup failure
Inside split_args we do a = realloc(b) and strdup.  If the realloc
succeeds and then the strdup fails, we return NULL to the caller.  The
caller will then jump to an error code which will do a free(b).  This is
fine if the realloc failed, but is a big problem if realloc worked.  If
it worked b is now meaningless and a needs to be freed.

I change the function interface to return an error and to update "b"
from the caller.

Signed-off-by: Eric Paris <eparis@redhat.com>
2013-02-05 20:19:03 -05:00
checkpolicy checkpolicy: Free allocated memory when clean up / exit. 2013-02-05 20:14:50 -05:00
libselinux libselinux: do not leak file contexts with mmap'd backend 2013-02-05 20:14:48 -05:00
libsemanage libsemanage: semanage_store: do not leak on strdup failure 2013-02-05 20:19:03 -05:00
libsepol libsepol: Fix memory leak issues found by Klocwork 2013-02-05 20:14:50 -05:00
policycoreutils policycoreutils: seunshare: do checking on setfsuid 2013-02-05 20:14:51 -05:00
scripts scripts: release: do not complain if release dir exists 2013-02-05 20:19:03 -05:00
sepolgen sepolgen: understand role attributes 2013-02-05 20:14:47 -05:00
.gitignore global: gitignore: add a couple of more editor backup filetypes 2013-02-01 12:14:57 -05:00
Makefile libselinux: additional makefile support for rubywrap 2012-06-28 11:21:16 -04:00