]> git.zerfleddert.de Git - rigol/commitdiff
fix memory leak
authorMichael Gernoth <michael@gernoth.net>
Sun, 6 Jun 2010 13:17:28 +0000 (15:17 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 6 Jun 2010 13:17:28 +0000 (15:17 +0200)
commands.c

index 646d3dec8d6cba04e646f72e12257f37e8f3e425..498690240602c3a3c86c92482531c486a9eeba28 100644 (file)
@@ -220,6 +220,7 @@ void do_display_screen(struct usb_dev_handle *sc)
                                imglen -= ret;
                        }
                        close(pipefd[1]);
+                       free(png);
                        break;
        }
 }
Impressum, Datenschutz