diff options
Diffstat (limited to 'Source/TunnelPassphraseRequester.m')
-rw-r--r-- | Source/TunnelPassphraseRequester.m | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/TunnelPassphraseRequester.m b/Source/TunnelPassphraseRequester.m index 360af00d..fb44a400 100644 --- a/Source/TunnelPassphraseRequester.m +++ b/Source/TunnelPassphraseRequester.m @@ -47,6 +47,7 @@ int main(int argc, const char *argv[]) sequelProTunnel = (SPSSHTunnel *)[NSConnection rootProxyForConnectionWithRegisteredName:connectionName host:nil]; if (!sequelProTunnel) { NSLog(@"SSH Tunnel: unable to connect to Sequel Pro to show SSH question"); + [argument release]; [pool release]; return 1; } @@ -57,6 +58,7 @@ int main(int argc, const char *argv[]) printf("no\n"); } [pool release]; + [argument release]; return 0; } @@ -114,6 +116,7 @@ int main(int argc, const char *argv[]) printf("%s\n", [password UTF8String]); [pool release]; + [argument release]; return 0; } } @@ -125,6 +128,7 @@ int main(int argc, const char *argv[]) if (!verificationHash) { NSLog(@"SSH Tunnel: key passphrase authentication required but insufficient details supplied to connect to GUI"); [pool release]; + [argument release]; return 1; } @@ -132,19 +136,23 @@ int main(int argc, const char *argv[]) if (!sequelProTunnel) { NSLog(@"SSH Tunnel: unable to connect to Sequel Pro to show SSH question"); [pool release]; + [argument release]; return 1; } passphrase = [sequelProTunnel getPasswordForQuery:argument verificationHash:verificationHash]; if (!passphrase) { [pool release]; + [argument release]; return 1; } printf("%s\n", [passphrase UTF8String]); [pool release]; + [argument release]; return 0; } [pool release]; + [argument release]; return 1; -}
\ No newline at end of file +} |