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:
b711850
)
storage: Using the right free func
author
Flavio Ceolin
<flavio.ceolin@profusion.mobi>
Thu, 5 Jan 2012 10:01:45 +0000
(11:01 +0100)
committer
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Thu, 5 Jan 2012 10:01:45 +0000
(11:01 +0100)
Fixing a segfault when it fails to store an information,
just using g_error_free instead of g_free.
src/storage.c
patch
|
blob
|
history
diff --git
a/src/storage.c
b/src/storage.c
index
7dcf2e3
..
54c023d
100644
(file)
--- a/
src/storage.c
+++ b/
src/storage.c
@@
-68,7
+68,7
@@
static void storage_save(GKeyFile *keyfile, char *pathname)
if (!g_file_set_contents(pathname, data, length, &error)) {
DBG("Failed to store information: %s", error->message);
- g_free(error);
+ g_
error_
free(error);
}
g_free(data);