projects
/
dana
/
cg-glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82a5f78
)
Regex leak on error path
author
Paolo Borelli
<pborelli@katamail.com>
Fri, 3 Apr 2009 04:04:39 +0000
(
00:04
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 3 Apr 2009 04:04:39 +0000
(
00:04
-0400)
Don't leak the GRegex struct when g_regex_new() fails.
glib/gregex.c
patch
|
blob
|
history
diff --git
a/glib/gregex.c
b/glib/gregex.c
index f92f0a98db25b353f91357326283838550aab3a0..091b418eb551ec8473ff9d9af6a7d06d4dd37871 100644
(file)
--- a/
glib/gregex.c
+++ b/
glib/gregex.c
@@
-1199,6
+1199,8
@@
g_regex_new (const gchar *pattern,
regex->pattern,
errmsg);
g_propagate_error (error, tmp_error);
+
+ g_regex_unref (regex);
return NULL;
}
}