diff options
author | Jim Meyering <jim@meyering.net> | 2008-06-12 22:53:07 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2008-06-12 22:53:07 +0000 |
commit | 9c5e177ecf929a3c4aaf76133dbe3eacac124b2b (patch) | |
tree | 68d8b48d6af6090bee6a39a19ad92cfdf933d179 /src/unexmacosx.c | |
parent | 455af463a1e359c89892b40e5cf69f2545d48908 (diff) | |
download | emacs-9c5e177ecf929a3c4aaf76133dbe3eacac124b2b.tar.gz |
make unexec_free handle NULL the same way free does
* unexmacosx.c (unexec_free): Ignore a NULL argument.
Diffstat (limited to 'src/unexmacosx.c')
-rw-r--r-- | src/unexmacosx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c index 46622601281..57f70f8557f 100644 --- a/src/unexmacosx.c +++ b/src/unexmacosx.c @@ -1318,6 +1318,8 @@ unexec_realloc (void *old_ptr, size_t new_size) void unexec_free (void *ptr) { + if (ptr == NULL) + return; if (in_dumped_exec) { if (!ptr_in_unexec_regions (ptr)) |