summaryrefslogtreecommitdiff
path: root/src/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/random.c')
-rw-r--r--src/random.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/random.c b/src/random.c
index 2b41645..df2d3ff 100644
--- a/src/random.c
+++ b/src/random.c
@@ -8,6 +8,7 @@
#include <string.h>
#include "logerr.h"
+#include "util.h"
#include "random.h"
@@ -54,7 +55,7 @@ out:
}
}
if (ret != NULL) {
- free(ret);
+ freeit((void *)&ret);
}
return rc;
}