diff options
author | Andres Lagar-Cavilla <andres@lagarcavilla.org> | 2012-09-17 11:17:03 +0100 |
---|---|---|
committer | Andres Lagar-Cavilla <andres@lagarcavilla.org> | 2012-09-17 11:17:03 +0100 |
commit | 201d1fba8cabe8fdee746822fd81d060f7f25f2e (patch) | |
tree | 2ebe8e8ed52697cc22eeb4e631384f0f9760fc69 /tools/xcutils | |
parent | a73a7a0c647a9a5e30d8bc473c0a1e8648817183 (diff) | |
download | xen-201d1fba8cabe8fdee746822fd81d060f7f25f2e.tar.gz xen-201d1fba8cabe8fdee746822fd81d060f7f25f2e.tar.bz2 xen-201d1fba8cabe8fdee746822fd81d060f7f25f2e.zip |
Fix libxenstore memory leak when USE_PTHREAD is not defined
Redefine usage of pthread_cleanup_push and _pop, to explicitly call free for
heap objects in error paths.
By the way, set a suitable errno value for an error path that had none.
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/xcutils')
0 files changed, 0 insertions, 0 deletions