Skip to content

Commit

Permalink
free(command) (was leaking)
Browse files Browse the repository at this point in the history
  • Loading branch information
bucciarati committed Oct 18, 2010
1 parent f317383 commit e1237c4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions notifidle.c
Expand Up @@ -48,6 +48,7 @@ static void ni_imap_cmd(unsigned int server, unsigned short need_tag, void (call
}

ssize_t sent = send(server, command, strlen(command), 0);
free(command);

unsigned int recv_size = 128;
char * reply = malloc(recv_size);
Expand Down

0 comments on commit e1237c4

Please sign in to comment.