summaryrefslogtreecommitdiff
path: root/libdleyna
diff options
context:
space:
mode:
authorChristophe Guiraud <christophe.guiraud@intel.com>2013-03-25 16:32:52 +0100
committerChristophe Guiraud <christophe.guiraud@intel.com>2013-03-25 16:32:52 +0100
commita09c971d03348900880d9a672fae96468e47a7cc (patch)
tree650263126ac5971a5f0c30830857bb39101f6f51 /libdleyna
parent2555b73c315f7a38d413cb176282dc8a426eff6d (diff)
downloaddleyna-renderer-a09c971d03348900880d9a672fae96468e47a7cc.tar.gz
[Bug] Fix Blatant memory leak in dlr_device_new
- In function dlr_device_new(), the variable dev is initialized twice. Remove redundant first dev variable initialization. - Fix issue: https://github.com/01org/dleyna-renderer/issues/36 Signed-off-by: Christophe Guiraud <christophe.guiraud@intel.com>
Diffstat (limited to 'libdleyna')
-rw-r--r--libdleyna/renderer/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdleyna/renderer/device.c b/libdleyna/renderer/device.c
index 0fdafa9..ee6b1c6 100644
--- a/libdleyna/renderer/device.c
+++ b/libdleyna/renderer/device.c
@@ -734,7 +734,7 @@ dlr_device_t *dlr_device_new(
const dleyna_connector_dispatch_cb_t *dispatch_table,
const dleyna_task_queue_key_t *queue_id)
{
- dlr_device_t *dev = g_new0(dlr_device_t, 1);
+ dlr_device_t *dev;
prv_new_device_ct_t *priv_t;
gchar *new_path;
dlr_device_context_t *context;