projects
/
profile
/
ivi
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42ec7c7
)
Fix memory leak in loading function
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 5 Jan 2009 01:45:04 +0000
(
02:45
+0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 5 Jan 2009 01:45:04 +0000
(
02:45
+0100)
src/device.c
patch
|
blob
|
history
diff --git
a/src/device.c
b/src/device.c
index
9866918
..
1bc0d83
100644
(file)
--- a/
src/device.c
+++ b/
src/device.c
@@
-1209,7
+1209,7
@@
static int device_load(struct connman_device *device)
GKeyFile *keyfile;
gchar *pathname, *data = NULL;
gsize length;
- c
onst c
har *str;
+ char *str;
DBG("device %p", device);
@@
-1236,8
+1236,10
@@
static int device_load(struct connman_device *device)
g_free(data);
str = g_key_file_get_string(keyfile, "Configuration", "Policy", NULL);
- if (str != NULL)
+ if (str != NULL)
{
device->policy = string2policy(str);
+ g_free(str);
+ }
g_key_file_free(keyfile);