summaryrefslogtreecommitdiff
path: root/cups
diff options
context:
space:
mode:
authorSteve Grubb <sgrubb@redhat.com>2009-09-25 16:23:02 -0400
committerJohan Hedberg <johan.hedberg@nokia.com>2009-10-02 11:18:16 +0200
commit2e926fb0168ba0249dfbbcca71ff685e4235e1c7 (patch)
tree6113833bd98ccc40d16740fc2d4a9927990ef5c1 /cups
parent11091ffeeb39fd7a764925b3f146096c48b32407 (diff)
Fix memory leaks
I was doing some code reviews of the 4.54 release and found a few memory leaks. These are mostly in error paths.
Diffstat (limited to 'cups')
-rw-r--r--cups/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cups/main.c b/cups/main.c
index 1bbc78c72..0308f4d4f 100644
--- a/cups/main.c
+++ b/cups/main.c
@@ -599,6 +599,7 @@ static gboolean list_printers(void)
loop = g_main_loop_new(NULL, TRUE);
g_main_loop_run(loop);
+ g_free(adapter);
dbus_connection_unref(conn);
return TRUE;