Skip to content

Commit

Permalink
acc/uadk: fix double-free error
Browse files Browse the repository at this point in the history
Fix double-free error.

Signed-off-by: Qi Tao <[email protected]>
  • Loading branch information
Qi Tao authored and Liulongfang committed Sep 29, 2024
1 parent 05b1b0b commit 5d70926
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions wd.c
Original file line number Diff line number Diff line change
Expand Up @@ -938,9 +938,6 @@ void wd_release_alg_cap(struct wd_capability *head)
cap_pnext = cap_pnext->next;
free(cap_node);
}

if (head)
free(head);
}

struct wd_capability *wd_get_alg_cap(void)
Expand Down

0 comments on commit 5d70926

Please sign in to comment.