Found by scan-build. Signed-off-by: Christian Göttsche <cgzones@xxxxxxxxxxxxxx> --- policycoreutils/newrole/newrole.c | 1 + 1 file changed, 1 insertion(+) diff --git a/policycoreutils/newrole/newrole.c b/policycoreutils/newrole/newrole.c index 0264531a..7c1f062f 100644 --- a/policycoreutils/newrole/newrole.c +++ b/policycoreutils/newrole/newrole.c @@ -1239,6 +1239,7 @@ int main(int argc, char *argv[]) free(pw.pw_dir); free(pw.pw_shell); free(shell_argv0); + free(new_context); return exit_code; } -- 2.32.0