src/language/utilities/host.c (run_command): Fix memory leak
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 1 May 2021 12:08:27 +0000 (14:08 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 1 May 2021 12:08:27 +0000 (14:08 +0200)
src/language/utilities/host.c

index 5273a8918b5a211bfd9ea2d18c910e365e7c2eaf..477f9796a01ac519d91c684b78a3fa53032f7ff0 100644 (file)
@@ -262,6 +262,7 @@ run_command (const char *command, struct timespec timeout)
         end[-1] = '\0';
 
       output_log ("%s", output);
+      free (output);
     }
   free (locale_output);