Skip to content

Commit

Permalink
lib/imclient.c:imclient_authenticate_sub() memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov committed Aug 16, 2023
1 parent c53219d commit 94fea26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/imclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,8 +1181,8 @@ static int imclient_authenticate_sub(struct imclient *imclient,
if (secprops==NULL) return 1;

saslresult=sasl_setprop(imclient->saslconn, SASL_SEC_PROPS, secprops);
if (saslresult!=SASL_OK) return 1;
free(secprops);
if (saslresult!=SASL_OK) return 1;

addrsize=sizeof(struct sockaddr_storage);
if (getpeername(imclient->fd,(struct sockaddr *)&saddr_r,&addrsize)!=0)
Expand Down

0 comments on commit 94fea26

Please sign in to comment.