correction de code, valgrind ma tué

Signed-off-by: Mickael PURET <puret_mickael@yahoo.fr>