Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libutil/cleanup: fix unchecked malloc
Problem: if calloc() fails in cleanup_push(), a segfault will ensue. Don't assign values to allocated struct if calloc fails. Also, if zlist_append() fails, free the allocated struct instead of leaking it.
- Loading branch information