summaryrefslogtreecommitdiff
path: root/replace.h
diff options
context:
space:
mode:
Diffstat (limited to 'replace.h')
-rw-r--r--replace.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/replace.h b/replace.h
index 27daf2a..7f29338 100644
--- a/replace.h
+++ b/replace.h
@@ -710,4 +710,8 @@ char *ufc_crypt(const char *key, const char *salt);
#endif
#endif
+#ifndef SAFE_FREE
+#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)
+#endif
+
#endif /* _LIBREPLACE_REPLACE_H */