Commit 052739f4 authored by Leigh Stoller's avatar Leigh Stoller

Fix memory leak that Jon found.

parent 2a7ae856
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2009 University of Utah and the Flux Group.
* Copyright (c) 2000-2011 University of Utah and the Flux Group.
* All rights reserved.
*/
......@@ -565,6 +565,7 @@ elabinelab_hackcheck(struct sockaddr_in *target)
if (row[0] != 0 && row[0][0] != '\0') {
inet_aton(row[0], &(target->sin_addr));
mysql_free_result(res);
return 0;
}
mysql_free_result(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment