mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Converted all m_free to xfree etc.
This commit is contained in:
parent
cd570629b2
commit
a1cdf3c75f
112 changed files with 2067 additions and 1813 deletions
|
@ -89,7 +89,7 @@ getsrv(const char *name,struct srventry **list)
|
|||
struct srventry *srv=NULL;
|
||||
u16 type,class;
|
||||
|
||||
*list=m_realloc(*list,(srvcount+1)*sizeof(struct srventry));
|
||||
*list=xrealloc(*list,(srvcount+1)*sizeof(struct srventry));
|
||||
memset(&(*list)[srvcount],0,sizeof(struct srventry));
|
||||
srv=&(*list)[srvcount];
|
||||
srvcount++;
|
||||
|
@ -216,12 +216,12 @@ getsrv(const char *name,struct srventry **list)
|
|||
return srvcount;
|
||||
|
||||
noanswer:
|
||||
m_free(*list);
|
||||
xfree(*list);
|
||||
*list=NULL;
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
m_free(*list);
|
||||
xfree(*list);
|
||||
*list=NULL;
|
||||
return -1;
|
||||
}
|
||||
|
@ -246,7 +246,7 @@ main(int argc,char *argv[])
|
|||
printf("\n");
|
||||
}
|
||||
|
||||
m_free(srv);
|
||||
xfree(srv);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue