]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
api.c: add return value check for strdup()
authorKamalesh Babulal <kamalesh.babulal@oracle.com>
Tue, 8 Feb 2022 16:44:19 +0000 (09:44 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Tue, 8 Feb 2022 16:44:22 +0000 (09:44 -0700)
commit79d96738b9ba73a8d2507b0b2aa251857441414f
tree81bf531e633bcae990e0d1c730ee45aff2ab070d
parenta6f3fd339e2f104a64979196648086d996cb4409
api.c: add return value check for strdup()

In function cg_build_path_locked(), check for return value from
strdup(). This fixes, one of the long pending FIXME.

Signed-off-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/api.c