projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
028cbd9
)
ovs-appctl: Free memory on exit.
author
Ben Pfaff
<blp@nicira.com>
Tue, 2 Feb 2010 22:18:01 +0000
(14:18 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 2 Feb 2010 23:21:09 +0000
(15:21 -0800)
This makes it easier to see real memory leaks.
Found via valgrind.
utilities/ovs-appctl.c
patch
|
blob
|
history
diff --git
a/utilities/ovs-appctl.c
b/utilities/ovs-appctl.c
index 1302bf2e024439b8f5cdaddb08d39a547d06eace..7a3d91e5a01425e12501fa27882a1093ead502d0 100644
(file)
--- a/
utilities/ovs-appctl.c
+++ b/
utilities/ovs-appctl.c
@@
-1,5
+1,5
@@
/*
- * Copyright (c) 2008, 2009 Nicira Networks.
+ * Copyright (c) 2008, 2009
, 2010
Nicira Networks.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-71,6
+71,10
@@
main(int argc, char *argv[])
}
fputs(reply, stdout);
+ unixctl_client_destroy(client);
+ free(reply);
+ ds_destroy(&request);
+
return 0;
}