9fans archive / 1998 / 11 / 76 /    prev next

From: Assar Westerlund assar@sic...
Subject: [9fans] Re: How to use strdup()?
Date: 13 Nov 1998 02:19:03 +0100

okamoto@gra... writes:
> strdup(2) uses malloc(2), but does not free it.
> When the malloced memory space will be freed?

You have to call free(2).

/assar