diff options
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c index 03fd4c4b4..bf4ae325d 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3670,7 +3670,10 @@ privasserted(void) cap_flag_value_t val; cap_value_t n; for(n = 0; !cap_get_flag(caps, n, CAP_EFFECTIVE, &val); n++) - if(val) return 1; + if(val) { + cap_free(caps); + return 1; + } cap_free(caps); } } |