- freeing of NULL pointer is checked

This commit is contained in:
Jan Hutter 2005-11-08 06:48:12 +00:00
parent 6d4f09bc5f
commit 27d2b681ab
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,10 @@
static status_t destroy(packet_t *this)
{
pfree(this->data.ptr);
if (this->data.ptr != NULL)
{
pfree(this->data.ptr);
}
pfree(this);
return SUCCESS;
}