Return to rcsnum.c CVS log | Up to [local] / src / usr.bin / rcs |
version 1.16, 2015/01/16 06:40:11 | version 1.17, 2015/06/13 20:15:21 | ||
---|---|---|---|
|
|
||
#include <ctype.h> | #include <ctype.h> | ||
#include <err.h> | #include <err.h> | ||
#include <stdlib.h> | |||
#include <string.h> | #include <string.h> | ||
#include <limits.h> | #include <limits.h> | ||
|
|
||
void | void | ||
rcsnum_free(RCSNUM *rn) | rcsnum_free(RCSNUM *rn) | ||
{ | { | ||
if (rn->rn_id != NULL) | free(rn->rn_id); | ||
xfree(rn->rn_id); | free(rn); | ||
xfree(rn); | |||
} | } | ||
/* | /* | ||
|
|
||
rcsnum_aton_failed: | rcsnum_aton_failed: | ||
nump->rn_len = 0; | nump->rn_len = 0; | ||
xfree(nump->rn_id); | free(nump->rn_id); | ||
nump->rn_id = NULL; | nump->rn_id = NULL; | ||
return (-1); | return (-1); | ||
} | } |