PERFORCE change 79475 for review

soc-andrew soc-andrew at FreeBSD.org
Sun Jul 3 13:57:54 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=79475

Change 79475 by soc-andrew at soc-andrew_serv on 2005/07/03 13:57:38

	Fix another memory leak in libaura

Affected files ...

.. //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/lib/aura/buffer.c#3 edit

Differences ...

==== //depot/projects/soc2005/bsdinstaller/src/contrib/bsdinstaller/lib/aura/buffer.c#3 (text+ko) ====

@@ -242,8 +242,10 @@
 	vasprintf(&command, fmt, args);
 	va_end(args);
 
-	if ((p = popen(command, "r")) == NULL)
+	if ((p = popen(command, "r")) == NULL) {
+		free(command);
 		return(0);
+	}
 
 	free(command);
 


More information about the p4-projects mailing list