fix memory leak: use object specific release method
git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@2088 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
d644979168
commit
2e1ae46257
|
@ -360,7 +360,7 @@ sc_profile_free(struct sc_profile *profile)
|
|||
while ((ti = profile->template_list) != NULL) {
|
||||
profile->template_list = ti->next;
|
||||
if (ti->data)
|
||||
free(ti->data);
|
||||
sc_profile_free(ti->data);
|
||||
if (ti->name)
|
||||
free(ti->name);
|
||||
free(ti);
|
||||
|
|
Loading…
Reference in New Issue