diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-10-31 17:56:52 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-07 16:46:13 +0000 |
commit | d452391d6af2cb8b8bca086cd1474bf896536a39 (patch) | |
tree | b9bb32f56e397eb5d6df22d6400fd4750eb44965 /community/quvi/fix-memcorruption.patch | |
parent | 8495e2fadb8864235a22bf5e257e455866421c2b (diff) | |
download | aports-d452391d6af2cb8b8bca086cd1474bf896536a39.tar.bz2 aports-d452391d6af2cb8b8bca086cd1474bf896536a39.tar.xz |
main/*quvi*: move to community
Diffstat (limited to 'community/quvi/fix-memcorruption.patch')
-rw-r--r-- | community/quvi/fix-memcorruption.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/community/quvi/fix-memcorruption.patch b/community/quvi/fix-memcorruption.patch new file mode 100644 index 0000000000..4ffe254503 --- /dev/null +++ b/community/quvi/fix-memcorruption.patch @@ -0,0 +1,28 @@ +diff -ru quvi-0.9.5.orig/src/util/regex.c quvi-0.9.5/src/util/regex.c +--- quvi-0.9.5.orig/src/util/regex.c 2013-07-16 17:55:23.000000000 -0300 ++++ quvi-0.9.5/src/util/regex.c 2014-12-02 08:41:56.003383594 -0200 +@@ -194,9 +194,8 @@ + g_free(op->sequence); + g_free(op->regex); + g_free(op->mode); +- g_free(op); +- + memset(op, 0, sizeof(struct _lutil_regex_op_s)); ++ g_free(op); + } + + static gchar *_op_m(lutil_regex_op_t op, const gchar *s) +diff -ru quvi-0.9.5.orig/src/util/xchg.c quvi-0.9.5/src/util/xchg.c +--- quvi-0.9.5.orig/src/util/xchg.c 2013-11-10 09:58:30.000000000 -0200 ++++ quvi-0.9.5/src/util/xchg.c 2014-12-02 08:42:55.756717512 -0200 +@@ -260,9 +260,8 @@ + + g_hash_table_destroy(p->htable); + g_regex_unref(p->re); +- g_free(p); +- + memset(p, 0, sizeof(struct _lutil_xchg_seq_s)); ++ g_free(p); + } + + /* Replace the sequences in the given string (g_free the returned string). */ |