projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94ec415
)
Use free() instead of g_free() for things returned by index2*()
author
Inaky Perez-Gonzalez
<inaky@linux.intel.com>
Thu, 8 Oct 2009 02:01:59 +0000
(11:01 +0900)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sat, 10 Oct 2009 12:34:47 +0000
(14:34 +0200)
Otherwise ElectricFence choked on them.
src/inet.c
patch
|
blob
|
history
diff --git
a/src/inet.c
b/src/inet.c
index
9e84f67
..
4ced09b
100644
(file)
--- a/
src/inet.c
+++ b/
src/inet.c
@@
-512,7
+512,7
@@
struct connman_device *connman_inet_create_device(int index)
if (ident != NULL) {
connman_device_set_ident(device, ident);
-
g_
free(ident);
+ free(ident);
}
connman_device_set_string(device, "Address", addr);
@@
-520,8
+520,8
@@
struct connman_device *connman_inet_create_device(int index)
done:
g_free(devname);
g_free(node);
-
g_
free(name);
-
g_
free(addr);
+ free(name);
+ free(addr);
return device;
}