Pārlūkot izejas kodu

gui-fatal: fix message leak, since the dialog may not be fatal

Vincent Penquerc'h 10 gadi atpakaļ
vecāks
revīzija
960c85587f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      qubes-rpc/gui-fatal.c

+ 1 - 0
qubes-rpc/gui-fatal.c

@@ -35,6 +35,7 @@ static void produce_message(const char * type, const char *fmt, va_list args)
 		exit(1);
 	default:;
 	}
+	free(dialog_msg);
 }
 
 void gui_fatal(const char *fmt, ...)