Commit 0f8ecc1
committed
libjob: fix leak, improve error from unwrap_string()
Problem: When built with flux-security support, unwrap_string() leaks
the security context object when flux_security_create() succeeds, but
flux_security_configure() fails. Also, the error message is generic
so the specific error from flux_security_configure() available from
flux_security_last_error() is suppressed.
Fix these two issues by handling failure from flux_security_configure()
separately from flux_security_create().1 parent 9f960a3 commit 0f8ecc1
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
| 79 | + | |
81 | 80 | | |
82 | | - | |
| 81 | + | |
83 | 82 | | |
84 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
0 commit comments