diff options
author | Ignacio Casal Quinteiro <nacho.resa@gmail.com> | 2014-12-26 15:11:11 +0100 |
---|---|---|
committer | Ignacio Casal Quinteiro <nacho.resa@gmail.com> | 2014-12-26 15:11:11 +0100 |
commit | 9f56dd58965a54827b39c6bd64c0a2c86c1c4812 (patch) | |
tree | d75f3fc1f7284f39e840718f06afaeca96c791a1 | |
parent | b67cba631c01812190a1b0b196f2d157e6938423 (diff) | |
download | gusb-9f56dd58965a54827b39c6bd64c0a2c86c1c4812.tar.gz |
context: do not leak error
-rw-r--r-- | gusb/gusb-context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gusb/gusb-context.c b/gusb/gusb-context.c index d157fcd..561246e 100644 --- a/gusb/gusb-context.c +++ b/gusb/gusb-context.c @@ -315,6 +315,7 @@ g_usb_context_add_device (GUsbContext *context, if (device == NULL) { g_debug ("There was a problem creating the device: %s", error->message); + g_error_free (error); goto out; } |