animation: Fix potential leak of memory pointed to by move

Free move before return if animation is null.

Signed-off-by: Lucas Tanure <tanure@linux.com>
Reviewed-by: Giulio Camuffo <giuliocamuffo@gmail.com>
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
diff --git a/src/animation.c b/src/animation.c
index cc7482d..2c7943f 100644
--- a/src/animation.c
+++ b/src/animation.c
@@ -471,8 +471,10 @@
 	animation = weston_view_animation_create(view, start, end, move_frame,
 						 NULL, move_done, data, move);
 
-	if (animation == NULL)
+	if (animation == NULL){
+		free(move);
 		return NULL;
+	}
 
 	weston_spring_init(&animation->spring, 400.0, 0.0, 1.0);
 	animation->spring.friction = 1150;