$OpenBSD: patch-src_command_c,v 1.5 2015/01/15 22:11:15 halex Exp $

Fix use-after-free issue.

--- src/command.c.orig	Thu Jan 15 07:35:35 2015
+++ src/command.c	Thu Jan 15 07:35:42 2015
@@ -458,10 +458,10 @@ cmd_seek(gcc_unused int argc, gcc_unused char **argv, 
 	if (seekto > (int)mpd_status_get_total_time(status))
 		DIE("Seek amount would seek past the end of the song\n");
 
-	mpd_status_free(status);
-
 	if (!mpd_run_seek_id(conn, mpd_status_get_song_id(status), seekto))
 		printErrorAndExit(conn);
+
+	mpd_status_free(status);
 
 	return 1;
 }
