]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Don't forget to free capability object
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 21 Sep 2009 10:45:33 +0000 (12:45 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Mon, 21 Sep 2009 10:47:17 +0000 (12:47 +0200)
sys_linux.c

index 9a4e809b2c090a31e0e471cbf927c33b4587b477..405ccf69de55ca5b55fc5d7f1e26deb9025e4f0e 100644 (file)
@@ -926,6 +926,8 @@ SYS_Linux_DropRoot(char *user)
     LOG_FATAL(LOGF_SysLinux, "cap_set_proc() failed");
   }
 
+  cap_free(cap);
+
   LOG(LOGS_INFO, LOGF_SysLinux, "Privileges dropped to user %s", user);
 }
 #endif