Browse Source

MT#55283 use g_free after g_strdup

Change-Id: I4e717e64021a9b88a0f2d2b07f34333e7b13452f
pull/1759/head
Richard Fuchs 2 years ago
parent
commit
1475e19e06
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      daemon/helpers.c

+ 2
- 4
daemon/helpers.c View File

@ -107,10 +107,8 @@ int pcre_multi_match(pcre *re, pcre_extra *ree, const char *s, unsigned int num,
if (f(el, &ins, p))
g_queue_push_tail(q, ins);
for (i = 0; i < num; i++) {
if (el[i])
free(el[i]);
}
for (i = 0; i < num; i++)
g_free(el[i]);
}
free(el);


Loading…
Cancel
Save