projects
/
platform
/
upstream
/
neard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b64cf95
)
ndef: Fix mime type memory leak
author
Olivier Guiter
<olivier.guiter@linux.intel.com>
Thu, 8 Dec 2011 15:52:06 +0000
(16:52 +0100)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 8 Dec 2011 15:52:06 +0000
(16:52 +0100)
src/ndef.c
patch
|
blob
|
history
diff --git
a/src/ndef.c
b/src/ndef.c
index
e344591
..
6b04a75
100644
(file)
--- a/
src/ndef.c
+++ b/
src/ndef.c
@@
-431,6
+431,9
@@
static void free_sp_record(struct near_ndef_sp_record *sp)
static void free_mime_record(struct near_ndef_mime_record *mime)
{
g_free(mime->type);
+ g_free(mime);
+
+ mime = NULL;
}
static void free_ndef_record(struct near_ndef_record *record)