diff options
-rw-r--r-- | ldap/systools/idsktune.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ldap/systools/idsktune.c b/ldap/systools/idsktune.c index cd4934d9..40f1cf5c 100644 --- a/ldap/systools/idsktune.c +++ b/ldap/systools/idsktune.c @@ -1108,6 +1108,11 @@ linux_check_release(void) char osl[128]; char *cmd = strdup("/bin/uname -r"); + if (cmd == NULL) { + printf("ERROR: Unable to allocate memory\n"); + goto done; + } + if (flag_html) printf("<P>\n"); if (flag_debug) printf("DEBUG : %s\n",cmd); fp = popen(cmd,"r"); |