#include "binary_storage.h"
#include "utils.h"
-#include "const.h"
+#include "fuse_xattrs_config.h"
#include <attr/xattr.h>
void __free_on_memory_attr(struct on_memory_attr *attr)
{
- free(attr->name);
- free(attr->value);
+ if(attr->name != NULL)
+ free(attr->name);
+
+ if(attr->value != NULL)
+ free(attr->value);
+
free(attr);
}
{
debug_print("offset=%zu\n", *offset);
struct on_memory_attr *attr = malloc(sizeof(struct on_memory_attr));
+ attr->name = NULL;
+ attr->value = NULL;
////////////////////////////////
// Read name size