upas/fs: fix memory leak in ref822()
This commit is contained in:
parent
a71450412a
commit
e161f1c8ba
1 changed files with 2 additions and 1 deletions
|
@ -888,7 +888,8 @@ ref822(Message *m, Header *h, char*, char *p)
|
|||
free(a[0]);
|
||||
memmove(&a[0], &a[1], (Nref - 1) * sizeof(a[0]));
|
||||
j--;
|
||||
}
|
||||
} if(a[j] != nil)
|
||||
continue;
|
||||
a[j] = strdup(f[i]);
|
||||
}
|
||||
free(s);
|
||||
|
|
Loading…
Reference in a new issue