'pmatch' was never freed. Found by coverity. Signed-off-by: Hannes Reinecke <hare@xxxxxxxx> --- libmultipath/prioritizers/iet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmultipath/prioritizers/iet.c b/libmultipath/prioritizers/iet.c index 0bcc48b..3549665 100644 --- a/libmultipath/prioritizers/iet.c +++ b/libmultipath/prioritizers/iet.c @@ -59,10 +59,11 @@ char *find_regex(char * string, char * regex) if (result) { strncpy(result, &string[start], size); result[size] = '\0'; + free(pmatch); return result; } } - else return NULL; + free(pmatch); } } return NULL; -- 2.6.6 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel