mirror of
https://github.com/weechat/weechat.git
synced 2026-06-30 06:46:38 +02:00
Fixed memory leak in exec_weechat_command()
This commit is contained in:
@@ -572,6 +572,7 @@ exec_weechat_command (t_irc_server *server, char *string)
|
||||
free (argv[j]);
|
||||
free (argv);
|
||||
}
|
||||
free (command);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -630,6 +631,7 @@ exec_weechat_command (t_irc_server *server, char *string)
|
||||
free (argv[j]);
|
||||
free (argv);
|
||||
}
|
||||
free (command);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -658,6 +660,7 @@ exec_weechat_command (t_irc_server *server, char *string)
|
||||
free (argv[j]);
|
||||
free (argv);
|
||||
}
|
||||
free (command);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -672,6 +675,7 @@ exec_weechat_command (t_irc_server *server, char *string)
|
||||
free (argv);
|
||||
}
|
||||
}
|
||||
free (command);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -572,6 +572,7 @@ exec_weechat_command (t_irc_server *server, char *string)
|
||||
free (argv[j]);
|
||||
free (argv);
|
||||
}
|
||||
free (command);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -630,6 +631,7 @@ exec_weechat_command (t_irc_server *server, char *string)
|
||||
free (argv[j]);
|
||||
free (argv);
|
||||
}
|
||||
free (command);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -658,6 +660,7 @@ exec_weechat_command (t_irc_server *server, char *string)
|
||||
free (argv[j]);
|
||||
free (argv);
|
||||
}
|
||||
free (command);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -672,6 +675,7 @@ exec_weechat_command (t_irc_server *server, char *string)
|
||||
free (argv);
|
||||
}
|
||||
}
|
||||
free (command);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user