Add valgrind tests and fix memleaks

This commit is contained in:
josch
2014-09-21 00:03:20 +02:00
parent 122db2ed82
commit 042a1cdf09
16 changed files with 177 additions and 18 deletions

View File

@@ -142,3 +142,13 @@ int mfshell_exec_shell_command(mfshell * shell, char *command)
return 0;
}
void mfshell_destroy(mfshell * shell)
{
free(shell->app_key);
free(shell->server);
free(shell->local_working_dir);
folder_free(shell->folder_curr);
mfconn_destroy(shell->conn);
free(shell);
}