diff options
author | Martin Kletzander <nert.pinx+github@gmail.com> | 2022-10-25 09:21:13 +0000 |
---|---|---|
committer | Jan Rybar <jrybar@redhat.com> | 2022-10-25 09:21:13 +0000 |
commit | cd7e055e6822449fbf6992868fa6d2b49d5c6fc4 (patch) | |
tree | 72633f46d90571922d698cb27189270a950dd517 | |
parent | 07593c1055ddbdda85465e09da1f44b1b4f0fc3d (diff) | |
download | polkit-cd7e055e6822449fbf6992868fa6d2b49d5c6fc4.tar.gz |
pkttyagent: Fix small memory leak
-rw-r--r-- | src/programs/pkttyagent.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/programs/pkttyagent.c b/src/programs/pkttyagent.c index ccb5754..4d04e9c 100644 --- a/src/programs/pkttyagent.c +++ b/src/programs/pkttyagent.c @@ -150,6 +150,12 @@ main (int argc, char *argv[]) goto out; } + if (opt_process != NULL && opt_system_bus_name != NULL) + { + g_printerr (_("%s: Options --process and --system-bus-name are mutually exclusive\n"), + g_get_prgname()); + goto out; + } if (opt_process != NULL) { gint pid; |