forked from Telodendria/Telodendria
[FIX] Fix memory leakages when deactivating multiple times.
This commit is contained in:
parent
1550a6ad29
commit
2d1c51beca
1 changed files with 2 additions and 2 deletions
|
@ -452,10 +452,10 @@ UserDeactivateWithInfo(User * user, char * admin, char * reason)
|
|||
JsonValue * val;
|
||||
|
||||
val = JsonValueString(admin);
|
||||
JsonSet(json, val, 2, "deactivate", "admin");
|
||||
JsonValueFree(JsonSet(json, val, 2, "deactivate", "admin"));
|
||||
|
||||
val = JsonValueString(reason);
|
||||
JsonSet(json, val, 2, "deactivate", "reason");
|
||||
JsonValueFree(JsonSet(json, val, 2, "deactivate", "reason"));
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Reference in a new issue