summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-12-05 18:03:00 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-12-05 18:03:00 (GMT)
commit2a7e284702a9cf3cfd060fe50e7ef96621633aa4 (patch)
tree15dc053ec6da4d1dc507ec1a76fb6f984e8bb723 /src/common
parent5c51c967a7566f29218b3d8233248742ff4d5e4c (diff)
Fixed a bug, memory leaks and cleaned the code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@296 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/common')
-rw-r--r--src/common/extstr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/extstr.c b/src/common/extstr.c
index 87d0b13..8249515 100644
--- a/src/common/extstr.c
+++ b/src/common/extstr.c
@@ -176,6 +176,8 @@ char *strrpl(char *haystack, const char *needle1, const char *needle2)
}
+ regfree(&preg);
+
return haystack;
}
@@ -267,6 +269,8 @@ char *escape_crlf(char *input)
}
+ regfree(&preg);
+
return input;
}