Close file descriptor after query command

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
Amadeusz Sławiński
2019-04-14 00:43:27 +02:00
parent 4e545ba086
commit 6cc0088057

View File

@@ -513,6 +513,7 @@ void SendCmdMessage(char *sty, char *match, char **av, int query)
/* Read the result and spit it out to stdout */
ReceiveRaw(r);
close(r);
unlink(SocketPath);
if (QueryResult == 2) /* An error happened */
exit(1);